[Python-Dev] Re: \ud800 crashes interpreter (PR#384)
Fredrik Lundh
Fredrik Lundh" <effbot@telia.com
Wed, 5 Jul 2000 19:47:55 +0200
I wrote:
> A quick look indicates that Windows uses "language identifiers":
> http://msdn.microsoft.com/library/psdk/winbase/nls_8xo3.htm
>=20
> Maybe Bill can dig up some better way to do this (a "language
> identifier to language code" table would be nice. There's one
> in Windows 2000 ;-)
nevermind; I've crafted a piece of code that digs out the RFC 1766
language code (e.g. en-EN) and the code page (e.g. cp1252), on
Win98/NT4/2000.
unfortunately, Win95 won't give me the language code; it insists
on using "language identifiers" (such as 041d). guess we need a
table after all. oh well.
patch follows.
</F>