"env" parameter to "popen" won't accept Unicode on Windows -minor Unicode bug

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Tue Jan 15 17:23:17 EST 2008


John Nagle wrote:
> The problem is that only the NT-derived Microsoft systems
> talk Unicode. The DOS/Win16/Win9x family did not. But they did
> have CreateProcess. So the current code will handle Win9x, but not
> Unicode.

Please explain, I don't understand. If you try using Windows system
functions in older Windows versions, u"mystring" will fail, too.
Those functions need byte strings, not Unicode string instances.
The latter have to be encoded to byte strings to pass them.
 
Regards,


Björn

-- 
BOFH excuse #70:

nesting roaches shorted out the ether cable




More information about the Python-list mailing list