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 Arfrever, amaury.forgeotdarc, eric.araujo, ezio.melotti, pitrou, vstinner
Date 2010-08-10.16:56:33
SpamBayes Score 3.1190004e-05
Marked as misclassified No
Message-id <1281459397.41.0.713564138813.issue9425@psf.upfronthosting.co.za>
In-reply-to
Content
_PyFile_FromFdUnicode.patch: create _PyFile_FromFdUnicode() function. It will be used in import.c to open a file using an unicode filename.

For _PyFile_FromFd(), I kept the previous behaviour: clear the exception on PyUnicode_DecodeFSDefault() error.

For fileobject.h: I used the same style than unicodeobject.h, one argument per line with their name. I prefer to write the argument name because the header can be used as a quick documentation.

As _PyFile_FromFd(), name is optional (can be NULL) for _PyFile_FromFdUnicode().
History
Date User Action Args
2010-08-10 16:56:58vstinnersetrecipients: + vstinner, amaury.forgeotdarc, pitrou, ezio.melotti, eric.araujo, Arfrever
2010-08-10 16:56:37vstinnersetmessageid: <1281459397.41.0.713564138813.issue9425@psf.upfronthosting.co.za>
2010-08-10 16:56:35vstinnerlinkissue9425 messages
2010-08-10 16:56:34vstinnercreate