After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 105145 - ve_locale_exists mixes LC_ALL/LC_MESSAGES
ve_locale_exists mixes LC_ALL/LC_MESSAGES
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.4.1.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
Trevor Curtis
Depends on:
Blocks:
 
 
Reported: 2003-02-03 19:16 UTC by Owen Taylor
Modified: 2004-04-01 23:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2003-02-03 19:16:08 UTC
ve_locale_exists, does,

 old = strdup (setlocale (LC_ALL, NULL));
 if (setlocale (LC_MESSAGES, loc) != NULL)
   [...]
 setlocale (LC_MESSAGES, old);

But if the initial locale is mixed, then the results of setlocale (LC_ALL,
NULL) will be something like

 LC_CTYPE=en_US.UTF-8;LC_NUMERIC=en_US.UTF-8;LC_COLLATE=C

which doesn't work when passed to setlocale (LC_MESSAGES, old);
(though it would work if passed to setlocale (LC_ALL, old).
Result of this is that you get Walloon messages - the last
language in locale.alias.

So, the simple fix is to change the LC_ALL to LC_MESSAGES 

-  old = strdup (setlocale (LC_ALL, NULL));
+  old = strdup (setlocale (LC_MESSAGES, NULL));
Comment 1 George Lebl 2003-05-13 18:37:17 UTC
darnit, that was a stupid bug.  I didn't actually mean to write LC_ALL
I don't think.  fixed in CVS
Comment 2 Bugzilla Maintainers 2004-04-01 23:44:57 UTC
The URL field has been removed from bugzilla.gnome.org. This URL was in the old URL field, and is being added as a comment so that the data is not lost. Please email bugmaster@gnome.org if you have any questions.

URL: 
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=82019