GNOME Bugzilla – Bug 760424
[PATCH] gjs --help shows translated characters as question marks on some locales
Last modified: 2016-07-19 18:10:58 UTC
Please see the attached patch. gjs-console should call setlocale before processing command line arguments in order to correctly show translated messages in --help.
Running 'gjs --help' with zh_TW.UTF-8 locale shows:
-c, --command=COMMAND Program passed in as a string
-C, --coverage-path=FILE Add the filename FILE to the list of files to generate coverage info for
--coverage-output=DIR Write coverage output to a directory DIR. This option is mandatory when using --coverage-path
-I, --include-path=DIR Add the directory DIR to the list of directories to search for js files.
Created attachment 318692 [details] [review]
console: Call setlocale before processing arguments
It is required to correctly show translated messages in 'gjs --help'.
Does anyone have time to review the patch? It has stayed here for more than 6 months.
Sorry it took so long! It's in master now -- thanks.
Attachment 318692 [details] pushed as bf1d819 - console: Call setlocale before processing arguments