[Python-Dev] Re: \ud800 crashes interpreter (PR#384)
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
> 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.
Python Pages: http://www.lemburg.com/python/