[Patches] [ python-Patches-430030 ] Avoid multiple BOMs in UTF-16 streams
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 19 Jun 2001 13:10:01 -0700
Patches item #430030, was updated on 2001-06-04 09:59
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=430030&group_id=5470
Category: library
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Martin v. Löwis (loewis)
Assigned to: M.-A. Lemburg (lemburg)
Summary: Avoid multiple BOMs in UTF-16 streams
Initial Comment:
This patch fixes the UTF-16 reader and writer to emit
and expect the BOM only at the beginning of the
stream. It is implemented by changing the
encode/decode function of the stream object after the
byte order is detected.
In addition, it adds a new test case test_codecs.
When committing the patch, the corresponding output
file must be generated.
----------------------------------------------------------------------
>Comment By: M.-A. Lemburg (lemburg)
Date: 2001-06-19 13:10
Message:
Logged In: YES
user_id=38388
Checked in a slightly modified version of the patch.
Thanks.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=430030&group_id=5470