GNOME Bugzilla – Bug 167095
system-tools-backends translated messages should always be in UTF-8
Last modified: 2005-02-12 13:50:08 UTC
The encoding of the translated strings from system-tools-backends seem to be based on current locale, while GTK+ widgets always assume UTF-8. This makes the translated messages appear as junk, unless a UTF-8 locale is selected. This doesn't occur with GTK+ apps in general. Steps to reproduce: 1. Compile system-tools-backends with th.po (will be attached). 2. Start services-admin under th_TH.TIS-620 locale. Expected result: - Thai descriptions of the system services appear as Thai. What actually happens: - They are rendered as 8-bit junk of ISO-8859-1 characters.
Created attachment 37356 [details] th.po for testing
Created attachment 37384 [details] [review] A proposed patch This patch just works (by ensuring UTF-8 locale for LC_MESSAGES in system-tools-backends). Please consider if it's technically sound.
Danilo, can you confirm this problem?
Yes, I can confirm the problem, but I don't like the proposed solution: UTF-8 locale might not be present at all, so you'd get the same stuff. For a correct solution, one should call: &bind_textdomain_codeset( "@GETTEXT_PACKAGE@", "UTF-8"); (I hope this function exists in Perl gettext implementation)
doh! weird typo, I'd swear that line was there when I added i18n to the backends... sorry, Fixed in CVS, now works for me