Message76405
UTF-7 decoding raises an exception for any character not in the RFC2152
"Set D" (directly encoded characters). In particular, it raises an
exception for characters in "Set O" (optional direct characters), such
as < = > [ ] @ etc. These characters can legitimately appear in
UTF-7-encoded text, and should be decoded (as themselves). As it is,
the UTF-7 decoder can't reliably be used to decode any UTF-7 text other
than that encoded by Python's own UTF-7 encoder.
Looking at the source of unicodeobject.c, the call to the SPECIAL macro
on line 1009 has hardcoded second and third arguments of zero. Maybe
changing the second argument to 1 would fix this. Maybe. |
|
Date |
User |
Action |
Args |
2008-11-25 11:11:56 | Nick Barnes | set | recipients:
+ Nick Barnes |
2008-11-25 11:11:56 | Nick Barnes | set | messageid: <1227611516.22.0.455645816232.issue4426@psf.upfronthosting.co.za> |
2008-11-25 11:11:55 | Nick Barnes | link | issue4426 messages |
2008-11-25 11:11:55 | Nick Barnes | create | |
|