normalize_codeset
Ulrich Drepper
drepper@redhat.com
Fri Aug 4 16:49:00 GMT 2000
Bruno Haible <haible@ilog.fr> writes:
> What's the purpose of the normalize_codeset done by localedef?
> Is it to permit that users enter the locale in lowercase and possibly
> without dashes?
Yes. People use
ja_JP.eucJP
ja_JP.EUC-JP
ja_JP.EUCJP
etc.
> Then why is it *not* done if a full pathname for the locale is given?
Because the user asked for it.
> This has the consequence that the ru_RU.KOI8-R locale (installed by
> "make localedata/install-locales") is really called ru_RU.KOI8-R.
It should not be. localedef should never be used with a complete
output path except for testing and by the user to create private
locales.
> XFree86 doesn't look at these files. It looks at the return value of
> setlocale(LC_CTYPE,NULL) and uses the resulting string
> 1) as an index in its own database of XLC_LOCALE files,
> 2) to determine whether it's an UTF-8 locale.
Then they have to add more aliases or do a similar normalization.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-alpha
mailing list