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 calvin
Recipients calvin
Date 2011-03-12.15:30:22
SpamBayes Score 0.0026296326
Marked as misclassified No
Message-id <1299943823.36.0.437320049664.issue11474@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.7 on Windows converts the URL path '/C|/' to a naked drive letter 'C:'.

C:\src>c:\Python27\python.exe -c "import urllib;print urllib.url2pathname('/C|/')"
C:
C:\src>

Expected and I believe the correct output would be C:\, not C:. Reason is that a naked drive letter C: means "current directory in drive C:", whereas C:\ means "root directory in drive C:". So if you happen to start your application in "C:\src" for example, the output "C:" is interpreted as "C:\src", not as "C:\".
History
Date User Action Args
2011-03-12 15:30:23calvinsetrecipients: + calvin
2011-03-12 15:30:23calvinsetmessageid: <1299943823.36.0.437320049664.issue11474@psf.upfronthosting.co.za>
2011-03-12 15:30:22calvinlinkissue11474 messages
2011-03-12 15:30:22calvincreate