shlex, unicode, and subprocess.Popen on Windows
clp2 at rebertia.com
Mon Aug 30 16:04:24 CEST 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.
Kudos for avoiding shell=True
More information about the Python-list