Re: [Python-3000] issue 3187 and decoding filenames

2008-08-21 Thread Victor Stinner
Le Thursday 21 August 2008 15:30:22 Benjamin Peterson, vous avez écrit : > Issue 3187 is a case where os.listdir tries to decode filenames with > the default file system encoding, but failing that, simply returns the > unencoded bytestring. This was obviously ok in 2.x, but not so good in > py3k wh

[Python-3000] issue 3187 and decoding filenames

2008-08-21 Thread Benjamin Peterson
Issue 3187 is a case where os.listdir tries to decode filenames with the default file system encoding, but failing that, simply returns the unencoded bytestring. This was obviously ok in 2.x, but not so good in py3k where bytes are cleanly separated from unicode. Any comments on the issue are welc