[issue3187] os.walk - strange bug

Amaury Forgeot d'Arc report at bugs.python.org
Tue Jun 24 15:37:49 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The original problem seems to come from some Unix platform, but this
patch only handles two cases:
- on win32, when the argument is a bytestring.
- on OS/2.
And in both cases, the default (utf-8) conversion seems wrong. Something
like cp1252 (the ANSI code page for Western Windows) would be more sensible.

In the posix part of the function, there is the comment (2003-03-04):
    /* fall back to the original byte string, as
       discussed in patch #683592 */
btw, I find the penultimate message of this other thread very pleasant,
in the py3k context... I suppose the conclusions would not be the same
today.

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


More information about the Python-bugs-list mailing list