Martin v. Löwis added the comment:

It actually *is* possible to work with UTF-8-encoded file names even in an 
ASCII locale. It should work automatically, using the PEP 383 mechanism.

I'm -0 on allowing changes to the file system encoding. It may lead to 
mojibake, if some file names were read from the file system before the locale 
was changed, and then accessed later.

I don't understand why you think that it is, in some cases, impossible to pass 
environment variables. In case of dbus activiation, it is surely possible to 
pass environment variables somehow. The easiest solution should be to put

#!/bin/sh
s=''''
LANG=en_US.UTF-8 exec /usr/bin/python $0 "$@"
'''

into the beginning of the script.

----------
nosy: +loewis

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

Reply via email to