Re: non-ASCII characters in /etc/locales.alias ?
On Mon, Jan 28, 2002 at 11:17:09AM +0900, Tomohiro KUBOTA wrote:
> > That was the original point: to not display locale aliases that can't be
> > displayed in the current locale. This simply can't be done reliably.
>
> This is possible if we limit the environment is GNU libc.
Sorry, I'm not sure what you mean.
> The current locale can be obtained by nl_langinfo(CODESET).
> And, the "locale" utility is shipped with GNU libc distribution,
> it is possible for GNU "locale" utility to use nl_langinfo()
> without sacrifying portability.
Of course we know the current encoding, but we don't know the encoding
of the text in /etc/locale.aliases. (Unless we assume it's ISO-8859-1.)
> However, I prefer that "locale -a" doesn't display 8bit
> locale names at all, than "locale -a" displays 8bit locale
> names in ISO-8859-1 locales (or locales where 0xe5 and
> 0xe7 are valid codepoints).
Right.
--
Glenn Maynard
Reply to: