STINNER Victor <[EMAIL PROTECTED]> added the comment: Python 2.5 has the same problem (at least, on Linux). rmtree(<unicode directory name>) 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, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xac in position 3: ordinal not in range(128) ---
The filename: $ ls /tmp/run-3/exitcode1/run-4/run-1/session-2/ ?I?#??????????|?*? Pum The instruction was rmtree(u"/tmp/run-3/exitcode1/run-4/run-1/session-2"). ---------- versions: +Python 2.5 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3616> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com