GNOME Bugzilla – Bug 760432
[PATCH] libgtop_daemon2 --help shows translated characters as question marks on some locales
Last modified: 2016-01-11 16:09:08 UTC
Please see the attached patch. libgtop_daemon2 should call setlocale in main function in order to correctly show translated messages.
Running 'libgtop_daemon2 --help' with zh_TW.UTF-8 locale shows:
-h, --help ???????
-d, --debug Enable debugging
-v, --verbose Enable verbose output
-f, --no-daemon Don't fork into background
-i, --inetd Invoked from inetd
Created attachment 318700 [details] [review]
Call setlocale in main function of libgtop_daemon2
It is required to correctly show translated messages on some locales.
OK, but out of your curiosity, why were you launching this by hand ?
Review of attachment 318700 [details] [review]:
I have seen this kind of broken output messages in many different programs, so I decided to debug it yesterday. I checked all programs in my $JHBUILD_PREFIX/bin and fixed all of them. More than 20 bug reports were filed for this kind of problem, and this is one of them.
I know it is unusual to run libgtop_daemon2 by hand, but I did this simply because it is installed in $bindir.
Attachment 318700 [details] pushed as 05cb14d - Call setlocale in main function of libgtop_daemon2