Message9316
By the way, after https://hg.python.org/jython/rev/ea036792f304 os.listdir() also returns such REPLACEMENT CHARACTER for any unicode-incompatible byte.
$ rm -fr /tmp/some_dir
$ mkdir /tmp/some_dir
$ touch /tmp/some_dir/$'\x80'
$ touch /tmp/some_dir/aaa$'\x80\x81'aaa
$ jython2.7 -c 'import os; print(os.listdir("/tmp/some_dir"))'
[u'aaa\ufffd\ufffdaaa', u'\ufffd']
$
I think that this bug can be closed now. |
|
Date |
User |
Action |
Args |
2015-01-06 18:45:37 | Arfrever | set | messageid: <1420569937.24.0.400485602722.issue2239@psf.upfronthosting.co.za> |
2015-01-06 18:45:37 | Arfrever | set | recipients:
+ Arfrever, zyasoft, jeff.allen |
2015-01-06 18:45:37 | Arfrever | link | issue2239 messages |
2015-01-06 18:45:36 | Arfrever | create | |
|