On Dec 7, 2007, at 5:46 PM, Andrew Clover wrote:
> OTOH making the dictionaries reflect the underlying OS's conception of
> environment variables means users of os.environ and WSGI will have  
> to be
> able to cope with both bytes and unicode, which would also be a big
> annoyance.
>
> In summary: urgh, this is all messy and 'orrible.

I suppose this is more a question for python-dev, but, it'd be really  
nice if Python on Windows made it look like the windows system  
encoding was always UTF-8. That is, bytestrings used for open/ 
os.environ/argv/etc. are always encoded/decoded in utf-8, not the  
broken-platform-encoding. Then the same code would work just as well  
on unix as it does on windows.

Actually, I bet I could implement that today, just by wrapping some  
stuff....hmmm...

James
_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to