bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subtle sort bug?


From: Paul Eggert
Subject: Re: subtle sort bug?
Date: 03 Jul 2003 11:17:42 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

gregory mott <address@hidden> writes:

> when i pass textual input to sort, how does sort come to decide or infer
> the encoding?

>From the locale.  It looks at the LC_ALL environment variable; if that
isn't set it looks at LC_CTYPE; if that isn't set it looks at LANG;
otherwise the default locale is system-dependent.

> you seem to say that a locale is associated with a particular encoding. 

Yes.

> on rh9, the locale definitions (eg
> /usr/share/i18n/locales/en_IN) appear to be in unicode.

Some are UTF-8; some undoubtedly aren't.

> can you/anyone give me a clue?

You might try reading the GNU C library manual on locales.
<http://www.gnu.org/manual/glibc-2.2.5/html_node/Locales.html> 
Sorry, I don't use Red Hat, so you'll need to consult a Red Hat expert
for details specific to your system.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]