Sworddragon added the comment:

> If the environment variable is not enough

There is a big difference between environment variables and internal calls: 
Environment variables are user-space while builtin/library functions are 
developer-space.


> I have good news for you.  write() does not cal 
> sys.getfilesystemencoding(), because the encoding is set at the time > the 
> file is opened.

Thanks for the clarification. I wished somebody had sayed me that after this 
sentence in my startpost: "It seems that print() and write() (and maybe other 
of such I/O functions) are relying on sys.getfilesystemencoding()."


In theory this makes already my ticket invalid. Well, but now I would wish 
print() would allow to choose the encoding like open() too^^

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19846>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to