GNOME Bugzilla – Bug 760419
[PATCH] g-ir-compiler --help and g-ir-generate --help shows translated characters as question marks on some locales
Last modified: 2017-05-05 03:55:56 UTC
Please see the attached patch. g-ir-compiler and g-ir-scanner should call setlocale in main function in order to correctly show translated messages. Running 'g-ir-compiler --help' with zh_TW.UTF-8 locale shows: ??? g-ir-compiler [???] ????? -h, --help ??????? ??????? --includedir include directories in GIR search path -o, --output=FILE output file -m, --module=NAME module to compile -l, --shared-library=FILE shared library --debug show debug messages --verbose show verbose messages Running 'g-ir-generate --help' with zh_TW.UTF-8 locale shows: ??? g-ir-generate [???] ????? -h, --help ??????? ??????? --shlib handle typelib embedded in shlib -o, --output=FILE output file --includedir include directories in GIR search path --all show all available information
Created attachment 318687 [details] [review] g-ir-compiler, g-ir-generate: Call setlocale in main function It is required to correctly show translated messages on some locales.
Does anyone have time to review the patch? It has stayed here for more than 6 months.
Ping again ... It has stayed for 7 months now ...
Created attachment 350959 [details] [review] g-ir-{compiler,generate,inspect}: Call setlocale in main function It is required to correctly show translated messages on some locales.
Review of attachment 350959 [details] [review]: ACK-by: me.
Attachment 350959 [details] pushed as 74e4542 - g-ir-{compiler,generate,inspect}: Call setlocale in main function