Issue1361
Created on 2009-05-30.12:56:34 by Christof, last changed 2009-05-30.21:14:55 by Christof.
msg4763 (view) |
Author: Christof (Christof) |
Date: 2009-05-30.12:56:34 |
|
urllib.py uses os.path to find out which version to use for functions
pathname2url and url2pathname. So it checks os.path for values of 'mac',
'nt'or 'riscos'.
As in Jython 2.5RC3 os.path == 'java' (I always thought sys.platform
should contain java and not os.path) urllib falls back to a very
simplified version to just quote or unquote a filename.
Result (simplified example):
Python:
>>> u.pathname2url(os.path.abspath('a/b'))
'///c|/programs/a/b'
Jython
>>> u.pathname2url(os.path.abspath('a/b'))
'c%3A%5Cprograms2%5Ca%5Cb'
which obviously is not working. There even is a module nturl2path but it
is not used to the above problem.
Basically urllib.pathname2url is not useful at all :(
So I guess wether os.name is wrong or urllib needs fixing? thanks for
any help.
|
msg4764 (view) |
Author: Philip Jenvey (pjenvey) |
Date: 2009-05-30.20:00:27 |
|
This was fixed just the other day (after rc3) on trunk
|
msg4765 (view) |
Author: Christof (Christof) |
Date: 2009-05-30.21:14:53 |
|
Oh sorry, great! I guess there will be an RC4 then... :)
|
|
Date |
User |
Action |
Args |
2009-05-30 21:14:55 | Christof | set | messages:
+ msg4765 |
2009-05-30 20:00:28 | pjenvey | set | status: open -> closed resolution: fixed messages:
+ msg4764 nosy:
+ pjenvey |
2009-05-30 12:56:35 | Christof | create | |
|