[issue6097] Encoded surrogate characters on command line not escaped in sys.argv

2009-05-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6097 ___ ___ Python-bugs-list

[issue6097] Encoded surrogate characters on command line not escaped in sys.argv

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patch. Committed as r73020. -- nosy: +loewis resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6097

[issue6097] Encoded surrogate characters on command line not escaped in sys.argv

2009-05-24 Thread David Watson
New submission from David Watson bai...@users.sourceforge.net: The mbstowcs and mbrtwoc functions which are used for the initial conversion of command-line arguments on Unix can return lone or paired surrogates (e.g. \udcff for \xed\xb3\xbf in non-strict UTF-8), and these surrogates are