Bugs item #1513893, was opened at 2006-06-28 12:25
Message generated for change (Comment added) made by lemburg
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1513893&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Unicode
Group: Python 2.4
Status: Closed
Resolution: Wont Fix
Priority: 5
Submitted By: EricL (taziup)
Assigned to: M.-A. Lemburg (lemburg)
Summary: BOM UTF8 not written

Initial Comment:
The utf8 BOM (defined in codecs) is not written to a
file open with codecs.open or with codecs.EncodedFile

Perhaps, the utf16 BOM is correctly written to the file.

I've tested this problem on Python 2.4.3 on XP and
python 2.3.5 on debian sarge

I corrected this by adding the write of the BOM in the
encoding.utf8.StreamWritter class but i think it's not
the correct place.

Enjoy.
Eric

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

>Comment By: M.-A. Lemburg (lemburg)
Date: 2006-06-28 13:39

Message:
Logged In: YES 
user_id=38388

No, that won't work since the codec relies on new features
we added in 2.5.


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

Comment By: EricL (taziup)
Date: 2006-06-28 13:31

Message:
Logged In: YES 
user_id=1539001

Ok, so just put the codec in the 'encoding' directory in
python 2.4 ?


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

Comment By: EricL (taziup)
Date: 2006-06-28 13:31

Message:
Logged In: YES 
user_id=1539001

Ok, so just put the codec in the 'encoding' directory in
python 2.4 ?


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

Comment By: M.-A. Lemburg (lemburg)
Date: 2006-06-28 12:39

Message:
Logged In: YES 
user_id=38388

We have a utf-8-sig codec in Python 2.5 that supports just
this. You might want to take a look at the current Python
2.5 beta.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1513893&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to