Message56390
| Author | alexandre.vassalotti |
|---|---|
| Recipients | alexandre.vassalotti, christian.heimes, gvanrossum |
| Date | 2007-10-13.22:20:01 |
| SpamBayes Score | 0.054806784 |
| Marked as misclassified | No |
| Message-id | <1192314002.4.0.467578290533.issue1272@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Guido wrote: > Why copy the default encoding before mangling it? With a little > extra care you will only have to copy it once. Also, consider not > mangling at all, but assuming the encoding comes in a canonical form > -- several other functions assume that, e.g. PyUnicode_Decode() and > PyUnicode_AsEncodedString(). It is impossible guarantee that Py_FileSystemDefaultEncoding is normalized, since its value can be set using nl_langinfo(CODESET) during the bootstrapping process. PyUnicode_Decode() and other decoding/encoding functions use the codec module, which is not available during the early bootstrapping process, to normalize the encoding name. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007-10-13 22:20:02 | alexandre.vassalotti | set | spambayes_score: 0.0548068 -> 0.054806784 recipients: + alexandre.vassalotti, gvanrossum, christian.heimes |
| 2007-10-13 22:20:02 | alexandre.vassalotti | set | spambayes_score: 0.0548068 -> 0.0548068 messageid: <1192314002.4.0.467578290533.issue1272@psf.upfronthosting.co.za> |
| 2007-10-13 22:20:02 | alexandre.vassalotti | link | issue1272 messages |
| 2007-10-13 22:20:02 | alexandre.vassalotti | create | |