Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: This may become important when switching to python 3.0...
When passed str(''), FindFirstFileA is called with "*.*". But when passed unicode(''), FindFirstFileW is called with L"\\*.*" !!! Attached patch fixes (and tests) the problem. It was developed on 3.0, but applies on all versions. ---------- keywords: +needs review, patch nosy: +amaury.forgeotdarc priority: normal -> high stage: -> patch review Added file: http://bugs.python.org/file12222/listdir.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue818059> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com