[Bug 250145] New: glibc: Bad search path for locales with dialect
https://bugzilla.novell.com/show_bug.cgi?id=250145 Summary: glibc: Bad search path for locales with dialect Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: pbaudis@novell.com ReportedBy: sbrabec@novell.com QAContact: qa@suse.de If using locales with dialect, it uses incorrect search path while searching for locale files: How to reproduce: LANG=uz_UZ@Latn.UTF-8 strace -o gtkd.strace gtk-demo ; grep /usr/share/locale/.*gtk20 gtkd.strace | sed 's/.*"\(.*\)".*/\1/' Current behavior: /usr/share/locale/uz_UZ@Latn.UTF-8/LC_MESSAGES/gtk20.mo /usr/share/locale/uz@Latn.UTF-8/LC_MESSAGES/gtk20.mo /usr/share/locale/uz_UZ/LC_MESSAGES/gtk20.mo /usr/share/locale/uz/LC_MESSAGES/gtk20.mo /usr/share/locale/uz_UZ@Latn.UTF-8/LC_MESSAGES/gtk20-properties.mo /usr/share/locale/uz@Latn.UTF-8/LC_MESSAGES/gtk20-properties.mo /usr/share/locale/uz_UZ/LC_MESSAGES/gtk20-properties.mo /usr/share/locale/uz/LC_MESSAGES/gtk20-properties.mo The same problem affects other locale search paths. Expected behavior: Do not miss uz@Latn, where translations will most probably go. Expected behavior in detail: Most logical should be following search path: First search all forms of uz_UZ@Latn or uz@Latn: /usr/share/locale/uz_UZ@Latn.UTF-8/LC_MESSAGES/gtk20.mo /usr/share/locale/uz_UZ@Latn/LC_MESSAGES/gtk20.mo /usr/share/locale/uz@Latn.UTF-8/LC_MESSAGES/gtk20.mo /usr/share/locale/uz@Latn/LC_MESSAGES/gtk20.mo Then search all forms of uz_UZ: /usr/share/locale/uz_UZ.UTF-8/LC_MESSAGES/gtk20.mo /usr/share/locale/uz_UZ/LC_MESSAGES/gtk20.mo And last search all forms of uz: /usr/share/locale/uz.UTF-8/LC_MESSAGES/gtk20.mo /usr/share/locale/uz/LC_MESSAGES/gtk20.mo -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=250145 User pbaudis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=250145#c1 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Petr Baudis <pbaudis@novell.com> 2008-12-04 14:10:14 MST --- This works as expected, the problem is that you have the locale name in wrong order: it should be uz_UZ.UTF-8@Latn instead, this way Latn.UTF-8 is considered as a modifier as a whole. -- 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.
participants (1)
-
bugzilla_noreply@novell.com