New submission from Bastian Kleineidam <cal...@users.sourceforge.net>:

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:\".

----------
components: Library (Lib)
messages: 130684
nosy: calvin
priority: normal
severity: normal
status: open
title: url2pathname() handling of '/C|/' on Windows
versions: Python 2.7

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

Reply via email to