GNOME Bugzilla – Bug 760433
[PATCH] nautilus-sendto --help shows translated characters as question marks on some locales
Last modified: 2016-03-02 16:43:16 UTC
Please see the attached patch. nautilus-sendto should call setlocale in main function in order to correctly show translated messages. Running 'nautilus-sendto --help' with zh_TW.UTF-8 locale shows: ??? nautilus-sendto [???] [FILES...] ????? -h, --help ??????? ??????? -b, --run-from-build-dir ???????(???) -x, --xid ?? XID ??????????(???) -v, --version ?????????
Created attachment 318701 [details] [review] main: Call setlocale in main function It is required to correctly show translated messages on some locales.
Created attachment 319662 [details] [review] main: Fix a missing include in the previous commit
Follow-up was in: commit e49743759f3d9d2fd1ae76753e4161468c7253f3 Author: Bastien Nocera <hadess@hadess.net> Date: Mon Feb 1 16:19:51 2016 +0100 main: Fix build on some systems As a follow-up to 4b6a5146068e5c4f0d60aabbf2901bc9a9bce4a2, make sure to include locale.h to avoid setlocale() and LC_ALL not being defined. Those should already be dragged in by gi18n.h but it seems it doesn't work on some systems. ://bugzilla.gnome.org/show_bug.cgi?id=760664