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

Antoine Pitrou report at bugs.python.org
Thu Aug 28 15:55:17 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Selon STINNER Victor <report at bugs.python.org>:
>
> Python 2.5 has the same problem (at least, on Linux). rmtree(<unicode
> directory name>) fails if the directory contains invalid unicode
> string. Backtrace:

Well, I'm not sure we should call it the same problem, although the roots are
the same. The difference is that in 2.x, using bytes strings for file and
directory names is quite normal, especially under Linux where they are just
bytes at the OS level. In 3.0 though, those strings are supposed to be unicode
at the Python level, which makes the problem much more critical.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3616>
_______________________________________


More information about the Python-bugs-list mailing list