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.