[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Native unicode support?
- From: Björn De Meyer <bjorn.demeyer@...>
- Date: Tue, 25 Jun 2002 21:48:24 +0200
Eric Tetz wrote:
> Unless you add it yourself, there is no LANG variable in the environment
> on DOS or Windows machines.
Right again. Make it
loc = getenv("LANG"); /* Returns NULL if not found. */
setlocale(LC_ALL, (loc ? loc : "C" ));
AFAIK, "C" locale is completely portable.
"No one knows true heroes, for they speak not of their greatness." --
Björn De Meyer