system(...) and unicode
andrew at acooke.org
andrew at acooke.org
Mon May 22 18:11:05 EDT 2006
Hmmm. After reading
http://kofoto.rosdahl.net/trac/wiki/UnicodeInPython I tried:
system(cmd.encode(getfilesystemencoding()))
which works (nothing else changed). But that seems odd - is this a bug
(the asymmetry - I read files with os.listdir with no explicit unicode
handling, but need to do something explicitly on output - seems wrong),
or am I going to be bitten by other errors later?
Thanks,
Andrew
More information about the Python-list
mailing list