This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christopher.hogan
Recipients BreamoreBoy, barry, brett.cannon, christopher.hogan, dstufft, eric.araujo, jaraco, mgiuca, ncoghlan, r.david.murray, steve.dower, tarek, zach.ware
Date 2015-08-21.17:54:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440179666.98.0.956422465857.issue8987@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2015-08-21 17:54:27christopher.hogansetrecipients: + christopher.hogan, barry, brett.cannon, jaraco, ncoghlan, tarek, eric.araujo, mgiuca, r.david.murray, BreamoreBoy, zach.ware, steve.dower, dstufft
2015-08-21 17:54:26christopher.hogansetmessageid: <1440179666.98.0.956422465857.issue8987@psf.upfronthosting.co.za>
2015-08-21 17:54:26christopher.hoganlinkissue8987 messages
2015-08-21 17:54:26christopher.hogancreate