[issue3616] shutil.rmtree() fails on invalid filename

2008-08-28 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Selon STINNER Victor <[EMAIL PROTECTED]>: > > Python 2.5 has the same problem (at least, on Linux). rmtree( directory name>) fails if the directory contains invalid unicode > string. Backtrace: Well, I'm not sure we should call it the same pr

[issue3616] shutil.rmtree() fails on invalid filename

2008-08-28 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: Python 2.5 has the same problem (at least, on Linux). rmtree() fails if the directory contains invalid unicode string. Backtrace: --- File "shutil.py", line 163, in rmtree fullname = os.path.join(path, name) File "posixpath.py", line 65, i

[issue3616] shutil.rmtree() fails on invalid filename

2008-08-20 Thread Antoine Pitrou
Changes by Antoine Pitrou <[EMAIL PROTECTED]>: -- superseder: -> os.listdir can return byte strings ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3616] shutil.rmtree() fails on invalid filename

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: This is certainly a consequence of #3187, which is very high priority but also very difficult to find a satisying solution to. -- nosy: +pitrou resolution: -> duplicate status: open -> closed ___

[issue3616] shutil.rmtree() fails on invalid filename

2008-08-20 Thread STINNER Victor
New submission from STINNER Victor <[EMAIL PROTECTED]>: If the directory contains invalid filenames (invalid in the system charset), an exception is raised by os.path.join() used by shutil.rmtree(): fullname = os.path.join(path, name) File "/home/haypo/prog/py3k/Lib/posixpath.py", line 6