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 699261 - [PATCH] session: Don't accept empty string as saved language
[PATCH] session: Don't accept empty string as saved language
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-29 20:53 UTC by Colin Walters
Modified: 2013-04-29 21:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-session-Don-t-accept-empty-string-as-saved-language.patch (1.11 KB, patch)
2013-04-29 20:54 UTC, Colin Walters
none Details | Review

Description Colin Walters 2013-04-29 20:53:25 UTC
This way we get a proper fallback to the system's default locale.
Fixes setting of $LANG in user session in gnome-ostree buildmaster.
---
 daemon/gdm-session.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Comment 1 Colin Walters 2013-04-29 20:54:09 UTC
Created attachment 242845 [details] [review]
0001-session-Don-t-accept-empty-string-as-saved-language.patch
Comment 2 Colin Walters 2013-04-29 20:59:19 UTC
See also:
http://lists.freedesktop.org/archives/systemd-devel/2013-January/007945.html
for a discussion of the current state of $LANG, pam, systemd, gdm, and accountsservice.
Comment 3 Colin Walters 2013-04-29 21:15:09 UTC
<walters> Jasper, since i'm guessing halfline is busy, care to +1 https://bugzilla.gnome.org/show_bug.cgi?id=699261 ?
<Services> Bug 699261: normal, Normal, ---, gdm-maint, UNCONFIRMED, [PATCH] session: Don't accept empty string as saved language
<walters> though i still get an ellipsized list in g-i-s by default, but this is a useful first step
<Jasper> walters, I'm confused.
<Jasper> walters, oh, wait a minute
<walters> i think it's accountsservice that's feeding us an empty string instead of NULL
<walters> but you never notice this on fedora because of  /etc/profile.d/lang.sh 
<walters> see also http://lists.freedesktop.org/archives/systemd-devel/2013-January/007945.html fwiw
<walters> i should add that to the bug
<Jasper> walters, yeah, I'm not sure if accountsservice feeding us an empty string because of a blank keyfile is what we want
<Jasper> if mclasen was here...
<walters> it's probably worth fixing in both places
<walters> though i have a minor concern about suddenly returning NULL instead of "" might crash some accountsservice caller that was relying on the previous behavior
<Jasper> walters, anyway, I think that's a good patch, but I'd add a lot more to the commit message
<walters> like: http://pastebin.mozilla.org/2360345 ?
<Jasper> walters, ACK