[Bug 1216689] [Qt-UI][Japanese][German][Czech] libstorage-ng user messages don't show non-ASCII characters in TW
https://bugzilla.suse.com/show_bug.cgi?id=1216689 https://bugzilla.suse.com/show_bug.cgi?id=1216689#c88 --- Comment #88 from Arvin Schnell <aschnell@suse.com> --- (In reply to Stefan Hundhammer from comment #85)
AFAICS one call to
uselocale( LC_GLOBAL_LOCALE );
after perl_alloc() did the trick, even without needing to save and later restore LC_CTYPE.
So that was the missing puzzle piece to understand why setlocale did not work anymore. Good finding. Inserting it in YPerl does indeed fix the two problems of this bug. Also after switching the language in YaST special characters are correct for me. Setting the locale only for one thread could also be used in YaST itself, e.g. in IniParser in the TemporaryLocale class. Sometimes switching the locale can be avoided completely by using function that take a locale as argument, e.g. nl_langinfo_l. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com