GNOME Bugzilla – Bug 760416
[PATCH] broadwayd --help shows translated characters as question marks on some locales
Last modified: 2016-01-13 04:04:40 UTC
Please see the attached patch. broadwayd should call setlocale in main function in order to correctly show translated messages. Running 'broadwayd --help' with zh_TW.UTF-8 locale shows: ??? broadwayd [???] [:DISPLAY] - broadway display daemon ????? -h, --help ??????? ??????? -p, --port=PORT Httpd port -a, --address=ADDRESS Ip address to bind to -u, --unixsocket=ADDRESS Unix domain socket address -c, --cert=PATH SSL certificate path -k, --key=PATH SSL key path
Created attachment 318684 [details] [review] broadway: Call setlocale in main function of broadwayd It is required to correctly show translated messages on some locales.
Review of attachment 318684 [details] [review]: I think you need to call bindtextdomain and bind_textdomain_codeset too ?
(In reply to Matthias Clasen from comment #2) > Review of attachment 318684 [details] [review] [review]: > > I think you need to call bindtextdomain and bind_textdomain_codeset too ? broadwayd itself doesn't use gettext. The translated messages in 'broadwayd --help' come from GLib.
Review of attachment 318684 [details] [review]: ah, alright then.
Attachment 318684 [details] pushed as f4d2d66 - broadway: Call setlocale in main function of broadwayd