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 docs@python, vstinner
Date 2011-02-11.12:56:53
SpamBayes Score 0.004720978
Marked as misclassified No
Message-id <1297429013.87.0.0532788337313.issue11186@psf.upfronthosting.co.za>
In-reply-to
Content
Oops, my isUndecodableFilename() example is wrong. PEP 383 only uses U+DC80..U+DCFF range:

def isUndecodableFilename(filename):
  return any((0xDC80 <= ord(ch) <= 0xDCFF) for ch in filename)

Example of undecodable filename: b'bla\xe9\xff.py' with UTF-8 filesystem encoding is decoded as 'bla\uDCE9\uDCFF.py'.
History
Date User Action Args
2011-02-11 12:56:53vstinnersetrecipients: + vstinner, docs@python
2011-02-11 12:56:53vstinnersetmessageid: <1297429013.87.0.0532788337313.issue11186@psf.upfronthosting.co.za>
2011-02-11 12:56:53vstinnerlinkissue11186 messages
2011-02-11 12:56:53vstinnercreate