* Sebastian Geerken <s.geerken@ping.de> [2003-01-02 17:53] : [...]
BTW, does someone know a good and simple way to retrieve informations about other the user has specified via $LC_...? I need this for the standard value of the "char" attribute, which depends on the language of the document (or a content part).
Probably use the nl_langinfo C function with the item CODESET. From the manpage: nl_langinfo - query language and locale information CODESET (LC_CTYPE) Return a string with the name of the character encoding used in the selected locale, such as "UTF-8", "ISO-8859-1", or "ANSI_X3.4-1968" (better known as US-ASCII). This is the same string that you get with "locale charmap". For a list of character encoding names, try "locale -m", cf. locale(1). Fred