Message134417
| Author | vstinner |
|---|---|
| Recipients | amaury.forgeotdarc, benjamin.peterson, christian.heimes, eric.araujo, grahamd, loewis, ncoghlan, pitrou, python-dev, tarek, vstinner |
| Date | 2011-04-25.21:28:56 |
| SpamBayes Score | 1.442662e-09 |
| Marked as misclassified | No |
| Message-id | <1303766936.91.0.748736513625.issue10914@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Modules/_testembed fails with ISO-8859-15 locale encoding because of a bootstrap issue. The problem is that the filesystem encoding codec is implemented in Python: Python requires the codec to loads modules, but it has to load a module to load the codec. I already solved this issue in Python using C functions instead of the Python codec until Python is able to load modules (able to load the Python codec). The problem is the test on the "python initialization": PyUnicode_EncodeFSDefault / PyUnicode_DecodeFSDefaultAndSize check the global Py_FileSystemDefaultEncoding variable (use C functions if it is NULL). We should use C functions if Py_FileSystemDefaultEncoding is NULL *or* if interp->codecs_initialized is zero. I think that Python used interp->codecs_initialized flag. I removed the test on interp->codecs_initialized because I thought that it was useless. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-04-25 21:28:57 | vstinner | set | recipients: + vstinner, loewis, amaury.forgeotdarc, ncoghlan, pitrou, christian.heimes, benjamin.peterson, tarek, eric.araujo, grahamd, python-dev |
| 2011-04-25 21:28:56 | vstinner | set | messageid: <1303766936.91.0.748736513625.issue10914@psf.upfronthosting.co.za> |
| 2011-04-25 21:28:56 | vstinner | link | issue10914 messages |
| 2011-04-25 21:28:56 | vstinner | create | |