https://bugzilla.novell.com/show_bug.cgi?id=455987 User mmeeks@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=455987#c12 Michael Meeks <mmeeks@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|YaST2 |GNOME Summary|"LANG=de_DE yast2" segfaults with yast2 gtk |glib sometimes returns locale encoded strings | |from keyfiles ... --- Comment #12 from Michael Meeks <mmeeks@novell.com> 2008-12-04 07:59:13 MST --- So - this is a glib bug I believe, not a very serious one but ... ;-) For some reason we are somewhat hesitant to bind the UTF-8 charset to the textdomain - which causes invalid UTF-8 to pop through gettext, and our API to the upper levels where it causes grief like this. suggested patch. --- glib-2.18.2/glib/gkeyfile.c.old +++ glib-2.18.2/glib/gkeyfile.c @@ -1795,7 +1795,7 @@ if (has_gettext) { - if (bind_textdomain_codeset (key_file->gettext_domain, NULL)) + if (bind_textdomain_codeset (key_file->gettext_domain, "UTF-8")) translated_value = g_strdup (translated); else translated_value = g_locale_to_utf8 (translated, filed up-stream as: http://bugzilla.gnome.org/show_bug.cgi?id=563235 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.