[Patches] [ python-Patches-430030 ] Avoid multiple BOMs in UTF-16 streams

noreply@sourceforge.net noreply@sourceforge.net
Mon, 04 Jun 2001 09:59:20 -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: Open
Resolution: None
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.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=430030&group_id=5470