Chris Hogan added the comment:

Here's a change that might fix the trailing backslash problem for now without 
breaking anything.  libpath-fix.patch only affects arguments that we know are 
paths.  This happens before anything is quoted.

This avoids the problem when something like 'C:\path with space\trailing 
backslash\' is passed to _nt_quote_args() and becomes '"C:\path with 
space\trailing backslash\"'.  The " is escaped which mangles the string.

I'm not sure if it's the responsibility of the user to not pass in such 
arguments, or of cpython to sanitize these things.  Is this change harmless, or 
can you think of situations where it will break something?

----------
Added file: http://bugs.python.org/file40221/libpath-fix.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8987>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to