Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
gdm.15269
gdm-fix-button-lang.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gdm-fix-button-lang.patch of Package gdm.15269
diff -Nura gdm-3.10.0.1/daemon/gdm-session.c gdm-3.10.0.1_new/daemon/gdm-session.c --- gdm-3.10.0.1/daemon/gdm-session.c 2015-11-17 17:50:17.855947784 +0800 +++ gdm-3.10.0.1_new/daemon/gdm-session.c 2015-11-17 19:04:05.127856930 +0800 @@ -505,11 +505,22 @@ static const char * get_default_language_name (GdmSession *self) { + const char *locale = g_getenv ("LANG"); + if (self->priv->saved_language != NULL) { return self->priv->saved_language; } + else if (strcmp("POSIX", locale) != 0 && + strcmp("none", locale) != 0 && + strlen(locale) != 0) { + setlocale (LC_ALL, locale); + return (locale); + } + + else { return setlocale (LC_MESSAGES, NULL); + } } static const char *
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