LC_CTYPE
locale facet).
It is useful for portable programs which need to process text in otherencodings and locales than the currently selected one. Possible uses:
In theory, this would be very simple: POSIX provides the nl_langinfo
function,in such a way that
nl_langinfo (CODESET)
returns the encoding name. But the
nl_langinfo
function still does not existon some systems, and on those where it exists it returns unstandardizedvariations of the encoding names, like (on Solaris) "PCK" for "Shift_JIS".
This library fixes these flaws and provides a function
const char * locale_charset (void);
It determines the current locale's character encoding, and canonicalizes itinto one of the canonical names listed in config.charset. The result mustnot be freed; it is statically allocated. If the canonical name cannot bedetermined, the result is a non-canonical name.
$ ./configure --prefix=/usr/local $ make $ make install
This library is used in
To integrate this library into your package:
Distribution:The libcharset
directory offtp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.8.tar.gz