nl_langinfo(CODESET)
Bruno Haible
haible@ilog.fr
Fri Nov 3 06:39:00 GMT 2000
Markus Kuhn writes:
> Since there are a couple of programs out there (for example less and
> xterm!) which parse "LANG", "LC_CTYPE", and "LC_ALL" to find out
> whether UTF-8 is used (instead of using nl_langinfo(CODESET)), it
> would be good to attach ".UTF-8" to these four locale names in particular.
The programs you cite should be fixed to use nl_langinfo(CODESET), or
- if portability to older systems is desired - libcharset[1].
Bruno
[1] http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/clisp/libiconv/libcharset/?cvsroot=clisp
More information about the Libc-alpha
mailing list