Message64217
> Can you post an example that requires this code?
This is not a big issue, and it wouldn't hurt if it got declared "go away
and come back later if you have patch, test, docs, and a convincing use
case".
..But, for the record..
Suppose I want to both read and write some utf8. It is unknown whether the
input has a BOM, but it is known to be utf8. I want to write utf8 without
any BOM. I see two options, which I find slightly ugly/annoying/error-prone:
a) Use 2 separate encodings: read via utf_8_sig so as to transparently
accept input with/without BOM; use utf_8 on output to not emit any BOM.
b) Use utf_8 for read and write and explicitly check for and discard
leading BOM on input if any.
What _I_ would prefer is that utf_8 would ignore a BOM, if present (just
like utf_8_sig).
(What I was talking about in my last post was a complication in
consideration of someone else who would prefer otherwise, or of code that
might break upon my change.)
Regards,
..jim |
|
| Date |
User |
Action |
Args |
| 2008-03-20 22:21:42 | jgsack | set | spambayes_score: 0.0830758 -> 0.0830758 recipients:
+ jgsack, doerwalter, jafo, gagenellina, Rhamphoryncus |
| 2008-03-20 22:21:41 | jgsack | set | spambayes_score: 0.0830758 -> 0.0830758 messageid: <1206051701.68.0.0973039961354.issue1328@psf.upfronthosting.co.za> |
| 2008-03-20 22:21:41 | jgsack | link | issue1328 messages |
| 2008-03-20 22:21:40 | jgsack | create | |
|