This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: normalize_codeset
- To: Bruno Haible <haible at ilog dot fr>
- Subject: Re: normalize_codeset
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 04 Aug 2000 16:49:01 -0700
- Cc: libc-alpha at sourceware dot cygnus dot com
- References: <14730.60283.163051.344545@honolulu.ilog.fr><m3aeeszrxb.fsf@otr.mynet.cygnus.com><14731.15543.997161.73472@honolulu.ilog.fr>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------