GNOME Bugzilla – Bug 673834
dconf commandline tool doesn't initialise the locale
Last modified: 2013-01-24 17:11:24 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.
Created attachment 211725 [details] [review] dconf cli: call setlocale() on startup
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).
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.