>>>>> "Edward" == Edward H Trager <[EMAIL PROTECTED]> writes:

Edward> (1) Is examination of the LC_CTYPE environment variable on
Edward> UNIX-like environments a sufficient way of detecting locale?

If you are going to look at the env yourself, rather than using the
relevant libraries, you must look at more than just LC_CTYPE.

The progression is:

    LC_ALL overrides LC_CTYPE overrides LANG

So, first check LC_ALL; if that is not set then check LC_CTYPE; if
that is also not set check LANG; if that is not set the locale is C.

That should match the behavior of POSIX compliant libraries.

-JimC


Reply via email to