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 702088 - g-s-d-localeexec – sets invalid locale variables
g-s-d-localeexec – sets invalid locale variables
Status: RESOLVED DUPLICATE of bug 701322
Product: gnome-settings-daemon
Classification: Core
Component: general
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2013-06-12 12:05 UTC by Mantas Mikulėnas (grawity)
Modified: 2013-06-12 12:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mantas Mikulėnas (grawity) 2013-06-12 12:05:50 UTC
The output `gsettings get`, if it's a string, is surrounded by single-quotes. So when the recently-added `gnome-settings-daemon-localeexec` script calls SETTING=$(gsettings get org.gnome.system.locale region) the resulting variables have a pair of single-quotes *in their value*. Those should be stripped with SETTING=${SETTING//\'/} before setting $LC_TIME or whatever, otherwise programs complain.

(...while you're at it: #!/bin/sh would be more proper, as the script does not use any bash features, and bash isn't even always at the same location (only 'sh' is).)

gnome-settings-daemon 3.9.2.r12.g2db9281-1
Comment 1 Bastien Nocera 2013-06-12 12:35:50 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 701322 ***