shlex, unicode, and subprocess.Popen on Windows

Chris Rebert clp2 at rebertia.com
Mon Aug 30 10:04:24 EDT 2010


On Mon, Aug 30, 2010 at 6:54 AM,  <python at bdurham.com> wrote:
> Python 2.6/Windows: shlex.split() does not support unicode strings. Is this
> simply a limitation of the current shlex implementation or is this an
> intentional design decision that reflects the behavior of how the Windows
> shell supports unicode values?

It's a bug: http://bugs.python.org/issue1170

Also, shlex is cross-platform; the limitation has nothing to do with
Windows. As a matter of fact, the docs mention how shlex's
functionality is based off of Unix and POSIX.

Cheers,
Chris
--
Kudos for avoiding shell=True
http://blog.rebertia.com



More information about the Python-list mailing list