- Subject: Re: iconv module documentation or examples?
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Date: Sun, 31 Aug 2008 14:32:19 +0000 (UTC)
Hallo John,
"John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> Ethan Blanton <eblanton@xxxxxxxxxxxx> wrote:
>> I'm not sure if this is what you want, but ...
>>
>> #include <langinfo.h>
>>
>> char *nl_langinfo(nl_item item);
>>
>> If you pass CODESET as the argument to this function, it should give
>> you back the character encoding used by the active locale. This
>> function will give you most of the information you would retrieve with
>> the locale(1) query commands.
>
>
> For this reason, I think that something like this might work:
>
> define get_encoding ()
> {
> if (_slang_utf8_ok) return "UTF-8";
>
> variable lang = getenv ("LANG");
> if (lang == NULL)
> return NULL;
What's with LC_ALL and LC_CTYPE?
Bye, Jörg.
--
Mancher Hahn meint, dass die Sonne seinetwegen aufgeht.
(Theodor Fontane)
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2008 date index]
[2008 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]