[issue1209447] os.path.join() fails if 2nd arg is a UNC path

2012-12-05 Thread Pekka Klärck

Pekka Klärck added the comment:

It seems that joining UNC path to a directory root fails:

Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ntpath import join
>>> join('c:\\', 'server\\mount\\dir')
'c:server\\mount\\dir'

When the first argument contains also something else everything works fine:

>>> join('c:\\dir', 'server\\mount\\dir')
'server\\mount\\dir'

I would say this is a bug. Obviously fixing this changes behavior, but I have 
hard time believing that anyone relies on the current buggy output.

On the other hand, I was today reported a bug in my software that was caused by 
this. Funny thing was that the bug was in code that was added as a workaround 
for issue #3426 (i.e. use `join(os.getcwdu(), path)` instead of `abspath(path)` 
when path is Unicode). Luckily adding another workaround for this issue is 
pretty easy.

--
nosy: +pekka.klarck

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1209447] os.path.join() fails if 2nd arg is a UNC path

2010-08-26 Thread John Ehresman

John Ehresman  added the comment:

I say close it since it is a change in behavior and shouldn't go in a point 
release.  I'm happy to see it fixed in 3.1.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1209447] os.path.join() fails if 2nd arg is a UNC path

2010-08-26 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can the fix be backported to 2.7 or can this be closed?

--
nosy: +BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1209447] os.path.join() fails if 2nd arg is a UNC path

2009-05-06 Thread Hirokazu Yamamoto

Hirokazu Yamamoto  added the comment:

Seems to be fixed in python3.1. See #5799. This is not backported for
2.x yet. (Or it won't happen)

--
nosy: +ocean-city

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1209447] os.path.join() fails if 2nd arg is a UNC path

2009-02-15 Thread Daniel Diniz

Changes by Daniel Diniz :


--
assignee:  -> georg.brandl
components: +Documentation
nosy: +georg.brandl
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6 -Python 2.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com