Message9316

Author Arfrever
Recipients Arfrever, jeff.allen, zyasoft
Date 2015-01-06.18:45:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420569937.24.0.400485602722.issue2239@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-01-06 18:45:37Arfreversetmessageid: <1420569937.24.0.400485602722.issue2239@psf.upfronthosting.co.za>
2015-01-06 18:45:37Arfreversetrecipients: + Arfrever, zyasoft, jeff.allen
2015-01-06 18:45:37Arfreverlinkissue2239 messages
2015-01-06 18:45:36Arfrevercreate