On Fri, Jan 13, 2006 at 09:41:10AM +0200, Eddy Petrişor wrote: > > Attached are the results of the tests. What I can say is that: > > - as one can easily see the default ro_RO locale is broken (not recognised) > > - the ro_RO.ISO-8859-16 is not recognised (I feel that I am doing > > something wrong here) > > I made the patching over the glibc with my patch and tested it. The > ro_RO locale looks the same as in the tests for Ionel's patch. > Apparently there is something that I don't understand in the gentoo > system. (testing with Gentoo as I don't have an Internet connection at > home and my appartment mate has gentoo installed). > So I misjudged when I said that the ro_RO locale is broken.
You can check with 'localedef --help' where locales are looked at; on Debian: System's directory for character maps : /usr/share/i18n/charmaps repertoire maps: /usr/share/i18n/repertoiremaps locale path : /usr/lib/locale:/usr/share/i18n The other important point is whether your system has a single archive file (/usr/lib/locale/locale-archive) or multiple directories (/usr/lib/locale/ro_RO.utf8, etc.). This is controlled by the --no-archive flag of localedef. You can generate both to make sure that you are overriding system locales: $ localedef -i /path/to/ro_RO -f UTF-8 ro_RO.UTF-8 $ localedef -i /path/to/ro_RO -f UTF-8 --no-archive ro_RO.UTF-8 Maybe gentoo modified the default behavior, and added an --archive flag instead? If an absolute path is not specified for the -i flag, locale source file is searched in . and $I18NPATH. You check then your changes by requesting some informations: $ locale -k charmap day abday mon abmon But if you want to compare your locale to the default one, a simpler alternative is to build your locale into a different location, for instance: $ export LOCPATH=$(mktemp -d) $ localedef -i /path/to/ro_RO -f UTF-8 $LOCPATH/ro_RO.UTF-8 $ locale -k charmap day abday mon abmon Compare with default settings $ unset LOCPATH $ locale -k charmap day abday mon abmon If you do not find your changes on output, you can run $ strace -e open locale -k charmap day abday mon abmon to check which files are read. Denis