From: Jungshik Shin (jshin@mailaps.org)
Date: Thu Mar 27 2003 - 21:15:42 EST
On Wed, 26 Mar 2003, Otto Stolz wrote:
> Edward H Trager wrote:
>
> > (1) Is examination of the LC_CTYPE environment variable on UNIX-like
> > environments a sufficient way of detecting locale?
>
> No, see <http://docs.sun.com/db/doc/806-0627/6j9vhfn5f?a=view>.
> - <http://docs.sun.com/db/doc/806-0634/6j9vo5am0?a=view>
> - <http://docs.sun.com/db/doc/806-0634/6j9vo5akm?a=view>
> - <http://docs.sun.com/db/doc/806-0624/6j9vek59d?a=view>
Unfortunately, they don't make it very clear that nl_langinfo(CODESET)
has to be consulted first if what's necessary is the codeset in effect
at the moment. There are a lot of other nl_langinfo categories you can
query with nl_langinfo(see langinfo.h in the ref. given below). Anyway,
the most authorative reference to POSIX system is Single Unix Spec. v3
(aligned with POSIX IEEE 1xxx) available at
http://www.opengroup.org/products/publications/catalog/un.htm
(follow the link for C955 and search for 'nl_langinfo', 'locale',
'setlocale', 'langinfo.h', etc)
Jungshik Shin
This archive was generated by hypermail 2.1.5 : Thu Mar 27 2003 - 22:04:11 EST