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 673834 - dconf commandline tool doesn't initialise the locale
dconf commandline tool doesn't initialise the locale
Status: RESOLVED FIXED
Product: dconf
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: dconf-maint
dconf-maint
Depends on:
Blocks:
 
 
Reported: 2012-04-10 12:27 UTC by Allison Karlitskaya (desrt)
Modified: 2013-01-24 17:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
dconf cli: call setlocale() on startup (745 bytes, patch)
2012-04-10 12:35 UTC, Allison Karlitskaya (desrt)
committed Details | Review

Description Allison Karlitskaya (desrt) 2012-04-10 12:27:43 UTC
desrt@moonpix:~$ dconf write /x '"é"'
desrt@moonpix:~$ dconf read /x
'?'

It's a tricky question.  Should we always assume utf8 for output or should we rather try to convert to/from the user's locale?  Consider that this stuff will often be written to files or piped around -- doubly so in the case of dump/load.
Comment 1 Allison Karlitskaya (desrt) 2012-04-10 12:35:51 UTC
Created attachment 211725 [details] [review]
dconf cli: call setlocale() on startup
Comment 2 Allison Karlitskaya (desrt) 2012-04-10 12:38:53 UTC
Comment on attachment 211725 [details] [review]
dconf cli: call setlocale() on startup

Attachment 211725 [details] pushed as a27c6a3 - dconf cli: call setlocale() on startup

We'll just write utf8 for now since it's the least-intrusive patch at this point.

In the future we should consider using iconv and doing this properly
(and for the commandline arguments as well).
Comment 3 Allison Karlitskaya (desrt) 2013-01-24 17:11:24 UTC
Actually, I'm sort of sick of increasing code complexity to deal with non-utf8 systems.

The original bug is fixed, so closing this now.