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 pitrou
Recipients alex, hynek, pitrou
Date 2012-01-24.13:20:49
SpamBayes Score 2.94209e-13
Marked as misclassified No
Message-id <>
Yes, fixing the conversion block is probably the right approach.
Apparently posixmodule.c uses PyUnicode_FSConverter, perhaps that would work?
(also make sure that the case where a bytes string is given is fixed too:

>>> open(b"\x00")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: ''
Date User Action Args
2012-01-24 13:20:50pitrousetrecipients: + pitrou, alex, hynek
2012-01-24 13:20:50pitrousetmessageid: <>
2012-01-24 13:20:50pitroulinkissue13848 messages
2012-01-24 13:20:49pitroucreate