Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
gdm
gdm-2.23.92-another-locale-fixup.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gdm-2.23.92-another-locale-fixup.patch of Package gdm
--- gdm/gui/simple-greeter/gdm-languages.c (revision 6468) +++ gdm/gui/simple-greeter/gdm-languages.c (working copy) @@ -216,6 +216,25 @@ construct_language_name (const char *lan return name; } +static void +make_codeset_canonical_for_locale (const *name, + const char **codeset) +{ + char *old_locale; + char *canonical_codeset; + + old_locale = setlocale (LC_CTYPE, name); + + if (old_locale == NULL) { + return; + } + + g_free (*codeset); + *codeset = g_strdup (nl_langinfo (CODESET)); + + setlocale (LC_CTYPE, old_locale); +} + char * gdm_normalize_language_name (const char *name) { @@ -234,6 +253,10 @@ gdm_normalize_language_name (const char &territory_code, &codeset, &modifier); + if (codeset != NULL) { + make_codeset_canonical_for_locale (name, &codeset); + } + normalized_name = construct_language_name (language_code, territory_code, codeset, modifier);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor