[Python-Dev] Re: \ud800 crashes interpreter (PR#384)
M.-A. Lemburg
mal@lemburg.com
Wed, 05 Jul 2000 19:53:43 +0200
Fredrik Lundh wrote:
>
> I wrote:
>
> > A quick look indicates that Windows uses "language identifiers":
> > http://msdn.microsoft.com/library/psdk/winbase/nls_8xo3.htm
> >
> > 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.
Great :-)
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/