Martin <gzl...@googlemail.com> added the comment:

> It was already discussed: using a different encoding for filenames and for
> other things is really not a good idea. The main problem is the interaction
> with other programs.

Yes, for many programs, a change like this will mean they create the file, but 
then throw a traceback anyway when trying to print its name to stdout or 
something.

> Read discussion of issues #8622, #8775 and #9992.

Thanks. I agree that spreading different values to things like subprocess 
arguments and the environment is asking for trouble. Just changing how unicode 
filename are encoded by default seems safer, though it certainly won't help all 
code.

> The right fix is to fix your locale, not Python.

I've found that hard to stick to in the face of bug reports where "your locale" 
turns out to be "the locale used by some cronjob". Fixing my library to work 
under LANG=C is easier than bugging every downstream project.

----------

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

Reply via email to