CYGWIN=codepage? Or LC_CTYPE=foo?
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Apr 7 13:42:00 GMT 2008
On Apr 7 21:59, Kazuhiro Fujieda wrote:
> >>> On Mon, 07 Apr 2008 11:48:22 +0200
> >>> Corinna Vinschen said:
>
> > After a night's sleep... am I right that GetLocaleInfo is just half the
> > job?
>
> Yes, you are right. My implementation of setlocale uses the
> table mapping POSIX locale names to LCIDs to support other
> locales than the default. It allows users set LANG to fr_FR,
> whose LCID is 0x040C, even when the default on Windows is
> Japanese.
>
> Is this really necessary? I don't like the table in Cygwin DLL
> to realize such a useless feature although it is rather amusing.
> I want to drop the table.
>
> If setlocale of Cygwin emulates one on Unix faithfully, it
> requires the table. If it only supports the default, POSIX, and
> C, we can drop the table and it can still conform the standard.
How big is the table? We have probably bigger datastructures in Cygwin
than this one. Also, if we do it, it would make sense to have the
faithful solution, I think. Corporate environments might be glad to
have this and even for us developers it could help to test problems
in native environments.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
More information about the Cygwin-developers
mailing list