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 loewis
Recipients benjamin.peterson, loewis
Date 2009-05-03.20:52:46
SpamBayes Score 1.1384e-08
Marked as misclassified No
Message-id <1241383969.4.0.205864772567.issue5915@psf.upfronthosting.co.za>
In-reply-to
Content
Some notes, in addition to the PEP:

- the file system APIs have all stopped using et converters, and use O&
converters, with a new API function PyUnicode_FSConverter. This outputs
a bytes or bytearray object which needs to be released when done; if it
is a bytearray, the bytes also need to be locked when the GIL is released.

- to convert the environment successfully, initialization of the
filesystemddefaultencoding had to be moved up in the code.

- conversion of the command line arguments can't use codecs. Instead, it
uses the C library, hoping that their encoding is the same as the one
that we later determine as the file system encoding. With C99 mbrtowc,
it is possible to put utf8b escapes in the output; without that
function, every non-ASCII byte gets escaped if the CRT fails to convert
the entire string successfully.

- in the unlikely case that listdir still fails (if the file system
encoding cannot convert ASCII bytes sometimes), listdir now raises an
exception, to be consistent with the failure mode in all other places
where this problem may occur.
History
Date User Action Args
2009-05-03 20:52:49loewissetrecipients: + loewis, benjamin.peterson
2009-05-03 20:52:49loewissetmessageid: <1241383969.4.0.205864772567.issue5915@psf.upfronthosting.co.za>
2009-05-03 20:52:48loewislinkissue5915 messages
2009-05-03 20:52:46loewiscreate