CLOSED Problems with conflicting locales on my MGA9 system.

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

CLOSED Problems with conflicting locales on my MGA9 system.

Postby hugomarc » Jun 19th, '24, 16:15

Hi,

It looks like I have problems with locale in my MGA9 system.

I installed the photobook program CEWE Fotoservice on Mageia 9. The CEWE installer finished the installation fine, with: everything installed OK.

The desktop icon for CEWE Fotoservice is installed too.

However: this desktop icon refuses to start the foto-software (after double-click there's only a short blinking in the icon).

In the Konsole the command to run ./'CEWE Fotoservice' gives the following error:

Code: Select all
[marc@artis CEWE Fotoservice]$ ./'CEWE Fotoservice'
terminate called after throwing an instance of 'St13runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted (core dumped)
[marc@artis CEWE Fotoservice]$


I thought: is there something wrong with one or more locales?

So I typed, as user:

Code: Select all
[marc@artis ~]$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_DK.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=C
LC_MESSAGES=en_US.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=en_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=


* Note: No idea where the language DK for Denmark comes from. I've installed MGA 9 with Language=American English, Country=NL, American keyboard, Timezone=Amsterdam.
* Note that LC_ALL= is still empty.

Then, as user, I looked at /etc/locale.conf:

Code: Select all
[marc@artis ~]$ cat /etc/locale.conf
COUNTRY=NL
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_MONETARY=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
[marc@artis ~]$


Then, as root:

Code: Select all
[root@artis ~]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=


As you see: no locale is the same. This last one looks o.k., because in MCC I selected as language English American.

Then, again as root:

Code: Select all
[root@artis ~]# cat /etc/locale.conf
COUNTRY=NL
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_MONETARY=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
[root@artis ~]#
[/quote]


Then, as root:

Code: Select all
[root@artis ~]# cat /etc/sysconfig/i18n
COUNTRY=NL
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8:en_US:en
LC_ADDRESS=nl_NL.UTF-8
LC_COLLATE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_TIME=en_US.UTF-8
SYSFONT=lat0-16
[root@artis ~]#


It looks like there are different versions of locale in my system?

And further: when I try to change the US language into Dutch language, in the System Settings, under Regional Settings, I get this error:

'Could not find the system's available locales using the localectl tool. Please file a bug report about this at https://bugs.kde.org"

How can I repair this strange situation? (I'm not a computer expert).

Thanks in advance.

Regards from Amsterdam,

Marc.
Last edited by hugomarc on Jun 29th, '24, 13:12, edited 2 times in total.
hugomarc
 
Posts: 15
Joined: Jun 19th, '24, 16:02

Re: Problems with conflicting locales on my MGA9 system.

Postby doktor5000 » Jun 20th, '24, 00:12

If you want to change the locale, either please use localedrake https://doc.mageia.org/mcc/9/en/content ... ocaledrake or localectl directly.
Please don't use the one from plasma (System Settings, under Regional Settings) as that one has been buggy in the past. What is shown there for the regional / locale settings, can you please post some screenshots ?
From what I can tell, locale setting seem to be OK mostly. AFAIU you want your system to be in english but with dutch regional settings?
Then you basically want LANG AND LC_MESSAGES to be en_US.UTF-8 and the rest should probably be nl_NL.UTF-8

But the LANG definition for Denmark for your user seems to be an issue. Please provide the output of
Code: Select all
rpm -qa | grep -i locale | sort


and try to start it like this as your user
Code: Select all
LANG=C ./'CEWE Fotoservice'
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Problems with conflicting locales on my MGA9 system.

Postby hugomarc » Jun 20th, '24, 11:55

Thanks for your reply, Doktor.

Running localedrake as user results in the following errors:

Code: Select all
[marc@artis ~]$ localedrake
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "nl",
        LC_ALL = (unset),
        LC_ADDRESS = "nl_NL.UTF-8",
        LC_NAME = "nl_NL.UTF-8",
        LC_MONETARY = "C",
        LC_PAPER = "nl_NL.UTF-8",
        LC_IDENTIFICATION = "nl_NL.UTF-8",
        LC_TELEPHONE = "nl_NL.UTF-8",
        LC_SOURCED = "1",
        LC_MESSAGES = "en_US.UTF-8",
        LC_MEASUREMENT = "en_NL.UTF-8",
        LC_CTYPE = "en_US.UTF-8",
        LC_TIME = "nl_NL.UTF-8",
        LC_COLLATE = "en_US.UTF-8",
        LC_NUMERIC = "nl_NL.UTF-8",
        LANG = "en_DK.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_DK.UTF-8").
Too late to run INIT block at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 257.

(process:13298): Gtk-WARNING **: 11:39:14.856: Locale not supported by C library.
        Using the fallback 'C' locale.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/share/perl5/vendor_perl/Gtk3.pm line 539.

[marc@artis ~]$ localedrake
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "nl",
        LC_ALL = (unset),
        LC_ADDRESS = "nl_NL.UTF-8",
        LC_NAME = "nl_NL.UTF-8",
        LC_MONETARY = "C",
        LC_PAPER = "nl_NL.UTF-8",
        LC_IDENTIFICATION = "nl_NL.UTF-8",
        LC_TELEPHONE = "nl_NL.UTF-8",
        LC_SOURCED = "1",
        LC_MESSAGES = "en_US.UTF-8",
        LC_MEASUREMENT = "en_NL.UTF-8",
        LC_CTYPE = "en_US.UTF-8",
        LC_TIME = "nl_NL.UTF-8",
        LC_COLLATE = "en_US.UTF-8",
        LC_NUMERIC = "nl_NL.UTF-8",
        LANG = "en_DK.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_DK.UTF-8").
Too late to run INIT block at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 257.

(process:13298): Gtk-WARNING **: 11:39:14.856: Locale not supported by C library.
        Using the fallback 'C' locale.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/share/perl5/vendor_perl/Gtk3.pm line 539.


Apparently the system is falling back on "en_DK.UTF-8" as a fallback locale.

Running rpm -qa | grep -i locale | sort gives this:

Code: Select all
[marc@artis ~]$ rpm -qa | grep -i locale | sort
lib64boost_locale1.75.0-1.75.0-1.mga8
lib64boost_locale1.81.0-1.81.0-3.mga9
lib64kf5i18nlocaledata5-5.114.0-1.mga9
locales-2.36-2.mga9
locales-en-2.36-2.mga9
locales-nl-2.36-2.mga9
perl-Encode-Locale-1.50.0-6.mga9
perl-Locale-gettext-1.70.0-17.mga9
[marc@artis ~]$


Running Fotoservice from the konsole, as user, gives this:

Code: Select all
[marc@artis CEWE Fotoservice]$ LANG=C ./'CEWE Fotoservice'terminate called after throwing an instance of 'St13runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Afgebroken (geheugendump gemaakt)
[marc@artis CEWE Fotoservice]$


This is the same error as in the beginning of my topic.

More suggestions for a solution?

Marc.
hugomarc
 
Posts: 15
Joined: Jun 19th, '24, 16:02

Re: Problems with conflicting locales on my MGA9 system.

Postby doktor5000 » Jun 20th, '24, 16:30

OK but did you try to configure your expected locale settings in localedrake again or did you only open and close it? You may also need to change both country and locale temporarily to something else, and then back to your current settings to get the expected result.
Seems you also forgot about the screenshot from systemsettings for the regional settings?

Please try again with
Code: Select all
LC_ALL=C ./'CEWE Fotoservice'

and instead of "C" (this means posix default locale, so in english) also try en_US.UTF-8 or nl_NL.UTF-8

Also try with LANGUAGE= instead of LC_ALL. You may want to read https://www.gnu.org/software/gettext/ma ... E-variable
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Problems with conflicting locales on my MGA9 system.

Postby hugomarc » Jun 22nd, '24, 15:50

Hi Doktor,

I decided to eliminate my unnecessary complicated setup with two languages. Instead, I used localedrake, to make my MGA9 system Dutch-only.

I then followed your advice, to run the command LC_ALL=nl_NL.UTF-8 as user in the command line.
And see: it worked, CEWE Fotoservice starts up in graphical mode. Thanks!

But, there are still a few surprises in my locales, as you see in the following output:

Code: Select all
[marc@artis CEWE Fotoservice]$ LC_ALL=nl_NL.UTF-8 ./'CEWE Fotoservice'
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
"Using resource path: /home/marc/CEWE Fotoservice/CEWE Fotoservice/Resources"
I (2024-06-22T12:45:00.056) [void CWLogMessageHandler::writeLogHeader() 264] ==> Compiled: Mar 28 2024 10:51:18 <==
[0622/124500.399953:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale
Qt WebEngine resources not found at /home/marc/CEWE Fotoservice/CEWE Fotoservice/resources_qt/resources. Trying parent directory...
Installed Qt WebEngine locales directory not found at location /home/marc/CEWE Fotoservice/CEWE Fotoservice/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /home/marc/CEWE Fotoservice/CEWE Fotoservice/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/marc/.QtWebEngineProcess'
Qt WebEngine resources not found at /home/marc/CEWE Fotoservice/CEWE Fotoservice/resources_qt/resources. Trying parent directory...
Installed Qt WebEngine locales directory not found at location /home/marc/CEWE Fotoservice/CEWE Fotoservice/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /home/marc/CEWE Fotoservice/CEWE Fotoservice/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/marc/.QtWebEngineProcess'
[0622/124500.423124:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale
[0622/124500.423138:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale
Warning: Unsupported date format
Warning: Unsupported time format
Warning: Unsupported date format
Warning: Unsupported time format



And yet another surprise in the output of the command cat /etc/locale.conf:

Code: Select all
[marc@artis ~]$ cat /etc/locale.conf
COUNTRY=NL
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_MONETARY=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
[marc@artis ~]$


Remember, I had chosen the Dutch language and Netherlands as country, in localedrake. Still there are two US-entries in locale.conf. To be sure, I repeated the localdrake procedure a couple of times more, to enforce the NL language. However, the US entries stay there.

And what do you think of the output of the command localectl status:

Code: Select all
[marc@artis ~]$ localectl status
System Locale: LANG=en_US.UTF-8
               LC_NUMERIC=nl_NL.UTF-8
               LC_MONETARY=nl_NL.UTF-8
               LC_PAPER=nl_NL.UTF-8
               LC_NAME=nl_NL.UTF-8
               LC_ADDRESS=nl_NL.UTF-8
               LC_TELEPHONE=nl_NL.UTF-8
               LC_MEASUREMENT=nl_NL.UTF-8
               LC_IDENTIFICATION=nl_NL.UTF-8
    VC Keymap: us-intl
   X11 Layout: us
    X11 Model: pc105
  X11 Variant: alt-intl
  X11 Options: compose:rwin
[marc@artis ~]$


There is still one US language line there.

Checking which locales are installed on my system, it appears that there is also an (old?) MGA8 lib64boost_locale1:

Code: Select all
[marc@artis ~]$ rpm -qa | grep -i locale | sort
lib64boost_locale1.75.0-1.75.0-1.mga8
lib64boost_locale1.81.0-1.81.0-3.mga9
lib64kf5i18nlocaledata5-5.114.0-1.mga9
locales-2.36-2.mga9
locales-en-2.36-2.mga9
locales-nl-2.36-2.mga9
perl-Encode-Locale-1.50.0-6.mga9
perl-Locale-gettext-1.70.0-17.mga9
[marc@artis ~]$


And another surprise we can see using the command locale:

Code: Select all
[marc@artis ~]$ locale
locale: Kan LC_ALL niet op de standaard taalregio instellen: Bestand of map bestaat niet
LANG=en_DK.UTF-8
LC_CTYPE=nl_NL.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=C
LC_MESSAGES=nl_NL.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=en_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=
[marc@artis ~]$


And finally I tried to start Fotoservice with the command LANGUAGE=nl_NL.UTF-8 ./'CEWE Fotoservice'. That didn't work at all:

Code: Select all
[marc@artis CEWE Fotoservice]$ LANGUAGE=nl_NL.UTF-8 ./'CEWE Fotoservice'
terminate called after throwing an instance of 'St13runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Afgebroken (geheugendump gemaakt)
[marc@artis CEWE Fotoservice]$


And to top it off, the desktop icon for CEWE Fotoservice still does not work.

You asked for a screeshot of System Settings. Here under it is attached (in Dutch).

So, though I now can start the software from the command line, there apparently are still things wrong and missing in my system.

Can you give me advice where to start solving this situation?

(I think that as long as the locales are not without errors, it is not useful to reinstall the CEWE software).

Marc.
Attachments
Screenshot_System_Settings_in_Dutch.png
screenshot System Settings
Screenshot_System_Settings_in_Dutch.png (96.38 KiB) Viewed 7365 times
hugomarc
 
Posts: 15
Joined: Jun 19th, '24, 16:02

Re: Problems with conflicting locales on my MGA9 system.

Postby doktor5000 » Jun 23rd, '24, 23:56

I'd have to recheck when I'm back at my mga9 box where plasma stores locale settings, as those are sourced for your user during login, overriding/adding to the default system ones.

Apart from that, nothing is missing, you have locales-en and locales-nl installed which is fine. libboost is not related to the system locale settings.
Also the translation warning/error messages from CEWE Fotoservice are pretty common, you can find reports about that elsewhere too,
even in their own forums (although those are only in german, e.g. https://www.cewe-community.com/forum/fb ... 7&p=180289)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Problems with conflicting locales on my MGA9 system.

Postby doktor5000 » Jun 24th, '24, 00:21

Can you please post the contents of your ~/.config/plasma-localerc please ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Problems with conflicting locales on my MGA9 system.

Postby hugomarc » Jun 24th, '24, 16:46

Hi Doktor,

These are the entries in /home/marc/.config/plasma-localerc:

Code: Select all
[Formats]
LANG=en_DK.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MEASUREMENT=en_NL.UTF-8
LC_MONETARY=C
LC_TIME=nl_NL.UTF-8
useDetailed=true

[Translations]
LANGUAGE=nl


There is en_DK.UTF-8 again.

I still wonder where my system finds DK? And why is DK used as a fill-in, when the right languages (NL or US) are not found?

And when did this DK-stuff happen? Was it during the install of MGA9 (when I choose for the combination of language=English-American and country=NL)?

Marc.
hugomarc
 
Posts: 15
Joined: Jun 19th, '24, 16:02

Re: Problems with conflicting locales on my MGA9 system.

Postby doktor5000 » Jun 24th, '24, 17:19

No, you configured that at some point in systemsettings. Please delete the file, then logout and login again and repost the contents.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Problems with conflicting locales on my MGA9 system.

Postby hugomarc » Jun 24th, '24, 18:21

Doktor, thanks for that hint.

After deleting the file plasma-localerc, and logging user out and in, that file looks like this:

Code: Select all
[Formats]
LANG=nl_NL.UTF-8


And now the desktop start icon for the photo software opens the CEWE program nice.

Now, after this, running command line locale, gives this result:

Code: Select all
[marc@artis ~]$ locale
LANG=nl_NL.UTF-8
LC_CTYPE=nl_NL.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE=nl_NL.UTF-8
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES=nl_NL.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=
[marc@artis ~]$


However, running localectl status still shows LANG=en_US.UTF-8:

Code: Select all
[marc@artis ~]$ localectl status
System Locale: LANG=en_US.UTF-8
               LC_NUMERIC=nl_NL.UTF-8
               LC_MONETARY=nl_NL.UTF-8
               LC_PAPER=nl_NL.UTF-8
               LC_NAME=nl_NL.UTF-8
               LC_ADDRESS=nl_NL.UTF-8
               LC_TELEPHONE=nl_NL.UTF-8
               LC_MEASUREMENT=nl_NL.UTF-8
               LC_IDENTIFICATION=nl_NL.UTF-8
    VC Keymap: us-intl
   X11 Layout: us
    X11 Model: pc105
  X11 Variant: alt-intl
  X11 Options: compose:rwin
[marc@artis ~]$


And this is what cat /etc/locale.conf is showing:

Code: Select all
[marc@artis ~]$ cat /etc/locale.conf
COUNTRY=NL
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_MONETARY=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
[marc@artis ~]$


So, as far as I can understand, the locale problem for user is solved, but at the level of the system it still exists?

What to do now for solving that ?

Regards from Amsterdam,

Marc.
hugomarc
 
Posts: 15
Joined: Jun 19th, '24, 16:02

Re: Problems with conflicting locales on my MGA9 system.

Postby doktor5000 » Jun 24th, '24, 22:14

This should fix it as root:
Code: Select all
localectl set-locale nl_NL.UTF-8
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Problems with conflicting locales on my MGA9 system.

Postby doktor5000 » Jun 24th, '24, 22:21

FWIW, this is what it looks like here, from a fresh mga9 install

Code: Select all
[doktor5000@Mageia9]─[22:18:52]─[~] cat /etc/locale.conf
COUNTRY=DE
LANG=de_DE.UTF-8
LANGUAGE=de_DE.UTF-8:de
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Problems with conflicting locales on my MGA9 system.

Postby hugomarc » Jun 25th, '24, 12:03

Hi Doktor,

Thanks.

Indeed, after [root@artis ~]# localectl set-locale nl_NL.UTF-8, locale.conf looks like this:

Code: Select all
[root@artis ~]# cat /etc/locale.conf
LANG=nl_NL.UTF-8


If I like to make my system dual-language again (language = NL and US-en, country=NL), where and how should I do that?

BTW: if I run localdrake, the following error still shows up:

Code: Select all
[root@artis ~]# localedrake
Too late to run INIT block at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 257.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/share/perl5/vendor_perl/Gtk3.pm line 539.

(localedrake:707935): Gtk-CRITICAL **: 11:59:26.978: gtk_tree_model_get_path: assertion 'GTK_IS_TREE_MODEL (tree_model)' failed
[root@artis ~]#


Is this a known bug? Or should I report it?

Marc.
hugomarc
 
Posts: 15
Joined: Jun 19th, '24, 16:02

Re: Problems with conflicting locales on my MGA9 system.

Postby doktor5000 » Jun 25th, '24, 17:46

For the localedrake messages, those are normal and present since ages, no need to worry about those.

For the dual-language I'm not really sure. Maybe someone else with a dual-language installation can comment on that ?
Also with your settings (language = NL and US-en, country=NL) what would you expect from that - if you open an application, what language do you expect?
If you get a message in your logs (journalctl) - what language do you expect? Or otherwise where would you expect english and where dutch ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Problems with conflicting locales on my MGA9 system.

Postby morgano » Jun 25th, '24, 18:56

Different programs seem to use different variables
( COUNTRY / LANG / LANGUAGE )
to decide what language to use.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1489
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Problems with conflicting locales on my MGA9 system.

Postby hugomarc » Jun 26th, '24, 12:24

I was wrong, sorry. I want my system to use Country=NL and language=US-english.

Must I use localedrake for that, or should I use localectl for this?

And what is the difference doing that as user or as root?

Marc.
hugomarc
 
Posts: 15
Joined: Jun 19th, '24, 16:02

CLOSED Re: Problems with conflicting locales on my MGA9 syst

Postby hugomarc » Jun 29th, '24, 12:13

To bring my MGA9 system back to American English, I used, as root, the command: localectl set-locale en_US.UTF-8.

This did change locale.conf into American English, but for the normal user my system stayed in Dutch (NL). I do not understand why.

Only after using localedrake, as user, my system now speeks American English.

There seems to be a difference in locales for user and for root? I do not understand this matter, and couldn't find specific info on this in the manuals.

Anyway, my foto software is working again, so I close this topic.

Thanks for the help and regards from Amsterdam,

Marc.
hugomarc
 
Posts: 15
Joined: Jun 19th, '24, 16:02

Re: CLOSED Re: Problems with conflicting locales on my MGA9

Postby doktor5000 » Jun 29th, '24, 17:34

hugomarc wrote:There seems to be a difference in locales for user and for root? I do not understand this matter, and couldn't find specific info on this in the manuals.

As for every setting basically. There's a system default, but for nearly all settings users can adapt or overwrite those.
If some script run during graphical login select dutch language then it's dutch language for that user session, even when the system is in english.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: CLOSED Problems with conflicting locales on my MGA9 syst

Postby hugomarc » Jun 30th, '24, 19:54

Thanks Doktor.

One more question:

You advised me this:

Code: Select all
If you want to change the locale, either please use localedrake https://doc.mageia.org/mcc/9/en/content ... ocaledrake or localectl directly.


What is the difference between localedrake and localectl?

And what difference does it make when I use these commands as user or as root?

Marc.
hugomarc
 
Posts: 15
Joined: Jun 19th, '24, 16:02


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron