This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Sworddragon, a.badger, bkabrda, ezio.melotti, jwilk, larry, loewis, martin.panter, ncoghlan, pitrou, python-dev, r.david.murray, serhiy.storchaka, vstinner
Date 2014-03-18.00:57:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395104266.81.0.810858469644.issue19977@psf.upfronthosting.co.za>
In-reply-to
Content
New behaviour:

$ mkdir z
$ touch z/abcé
$ LC_CTYPE=C ./python -c 'import os; print(os.listdir("z")[0])'
abcé

Old behaviour, before the change (test with Python 3.3):

$ LC_CTYPE=C python3 -c 'import os; print(os.listdir("z")[0])'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-4: ordinal not in range(128)
History
Date User Action Args
2014-03-18 00:57:47vstinnersetrecipients: + vstinner, loewis, ncoghlan, pitrou, larry, jwilk, ezio.melotti, a.badger, r.david.murray, Sworddragon, python-dev, martin.panter, serhiy.storchaka, bkabrda
2014-03-18 00:57:46vstinnersetmessageid: <1395104266.81.0.810858469644.issue19977@psf.upfronthosting.co.za>
2014-03-18 00:57:46vstinnerlinkissue19977 messages
2014-03-18 00:57:46vstinnercreate