nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] character sets and localization

2010-11-13 11:48:27
No, we should find a good external library that handles that for us.

glibc comes with 'iconv', that should be a good place to start for most
systems.  Probably we should create a wrapper function that just calls
iconv on glibc-based systems, or equivalent on other boxes.

That'll work.  Thanks.


There is no standard of which I'm aware for finding out the local character
set.

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.

Jon

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>