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, benjamin.peterson, ezio.melotti, gregory.p.smith, lemburg, loewis, pitrou, vstinner
Date 2010-05-15.13:23:16
SpamBayes Score 0.022124644
Marked as misclassified No
Message-id <1273929799.16.0.0358701001237.issue8715@psf.upfronthosting.co.za>
In-reply-to
Content
PyUnicode_AsEncodedString() contains a special path for the file system encoding. I don't think that it is still needed, but I don't know how to check that.

    /* During bootstrap, we may need to find the encodings
       package, to load the file system encoding, and require the
       file system encoding in order to load the encodings
       package.

       Break out of this dependency by assuming that the path to
       the encodings module is ASCII-only.  XXX could try wcstombs
       instead, if the file system encoding is the locale's
       encoding. */
    else if (Py_FileSystemDefaultEncoding &&
             strcmp(encoding, Py_FileSystemDefaultEncoding) == 0 &&
             !PyThreadState_GET()->interp->codecs_initialized)
        return PyUnicode_EncodeASCII(PyUnicode_AS_UNICODE(unicode),
                                     PyUnicode_GET_SIZE(unicode),
                                     errors);
History
Date User Action Args
2010-05-15 13:23:19vstinnersetrecipients: + vstinner, lemburg, loewis, gregory.p.smith, pitrou, benjamin.peterson, ezio.melotti, Arfrever
2010-05-15 13:23:19vstinnersetmessageid: <1273929799.16.0.0358701001237.issue8715@psf.upfronthosting.co.za>
2010-05-15 13:23:17vstinnerlinkissue8715 messages
2010-05-15 13:23:16vstinnercreate