Message80063
| Author |
loewis |
| Recipients |
loewis, mrabarnett, sjmachin |
| Date |
2009年01月18日.00:09:13 |
| SpamBayes Score |
1.0042356e-08 |
| Marked as misclassified |
No |
| Message-id |
<49727327.5060203@v.loewis.de> |
| In-reply-to |
<1232235983.84.0.135501490923.issue4971@psf.upfronthosting.co.za> |
| Content |
> Perhaps we are looking at different files;
Indeed, I was looking at the 3.2.0 database (assuming that it would be
the same in subsequent versions).
> ISTM the problem is that implementing the default-to-uppercase was not
> done in Tools/unicode/makeunicodedata.py where full information is
> available. This left no way in _PyUnicode_ToTitlecase of resolving the
> ambiguity of a zero value for ctype->title -- is it "no titlecase
> supplied so use uppercase" or is it "titlecase supplied, delta == 0,
> means ch.title() -> ch"?
Correct. So it seems this needs to be fixed in makeunicodedata.py
already. This was not the case with earlier versions of Unicode (which
never had a mapping to the same code point).
The logic for using deltas is also incorrect, so makeunicodedata.py
needs to be fixed anyway. |
|