GNOME Bugzilla – Bug 570003
Fix fallback code when /usr/lib/locale/locale-archive is not available
Last modified: 2009-07-17 18:09:13 UTC
When /usr/lib/locale/locale-archive is not available, we collect the locales from /usr/share/locale. That's, hrm, wrong: it should be /usr/lib/locale :-) (see the code from locale.c in the glibc if in doubt)
Created attachment 127643 [details] [review] Trivial patch
So we're waffling here: commit 34b6de974af9fa245f605c15c2e7a830be28de28 Author: Ray Strode <rstrode@redhat.com> Date: Tue Mar 25 19:00:27 2008 +0000 When looking for locales, look in /usr/share/locale instead of 2008-03-25 Ray Strode <rstrode@redhat.com> * gui/simple-greeter/gdm-languages: (select_dirs), (collect_locales_from_directory): When looking for locales, look in /usr/share/locale instead of /usr/lib/locale svn path=/trunk/; revision=6060 on my system, $ find /usr/lib/locale /usr/lib/locale /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl What do you have on your system?
I have stuff like: /usr/lib/locale /usr/lib/locale/es_VE.utf8 /usr/lib/locale/es_VE.utf8/LC_NUMERIC /usr/lib/locale/es_VE.utf8/LC_NAME /usr/lib/locale/es_VE.utf8/LC_PAPER /usr/lib/locale/es_VE.utf8/LC_TIME /usr/lib/locale/es_VE.utf8/LC_MEASUREMENT /usr/lib/locale/es_VE.utf8/LC_MONETARY /usr/lib/locale/es_VE.utf8/LC_COLLATE /usr/lib/locale/es_VE.utf8/LC_IDENTIFICATION /usr/lib/locale/es_VE.utf8/LC_TELEPHONE /usr/lib/locale/es_VE.utf8/LC_MESSAGES /usr/lib/locale/es_VE.utf8/LC_MESSAGES/SYS_LC_MESSAGES /usr/lib/locale/es_VE.utf8/LC_CTYPE /usr/lib/locale/es_VE.utf8/LC_ADDRESS [and then the same for all locales] Is this data in /usr/share/locale for you? In openSUSE, we don't ship locale-archive since our glibc maintainer thinks it's bad for some reason.
I guess in our case we never hit that code path because we do have the locale-archive file. I don't think we ship those files at all. Should be set in master.