Hi, On Thu, Jan 02, Frederic Bothamy wrote:
* 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: [...]
What I need is rather a function char *nl_langinfo(nl_item *item, char *locale); since the locale is set in the HTML document, not by the user (e.g. if a german user reads an english web page). Perhaps a temporary setlocale() may work. (Currently , neither localeconv, nor nl_langinfo works at all, perhaps I miss some files.) Anyway thanks for the answer. Sebastian