nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] character sets and localization


From: Earl Hood
Subject: Re: [Nmh-workers] character sets and localization
Date: Sat, 13 Nov 2010 12:30:37 -0600

On Sat, Nov 13, 2010 at 11:50 AM, Jon Steinhart <address@hidden> wrote:
>> Look at the $LANG environment variable, that's probably a good start on most
>> systems. The various LC_ environment variables if you want to do more
>> localization work.
>
> That's the way it is on my Linux system but that doesn't make it standard.

C program to print out current preferred character encoding:

#include <stdio.h>
#include <locale.h>
#include <langinfo.h>
int main()
{
  setlocale(LC_ALL, "");
  printf("%s\n", nl_langinfo(CODESET));
  return 0;
}

--ewh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]