shlex, unicode, and subprocess.Popen on Windows

Chris Rebert clp2 at
Mon Aug 30 16:04:24 CEST 2010

On Mon, Aug 30, 2010 at 6:54 AM,  <python at> 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:

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.

Kudos for avoiding shell=True

More information about the Python-list mailing list