[ python-Bugs-1696025 ] codecs.EncodedFile() - the same data and file encodings
SourceForge.net
noreply at sourceforge.net
Sun Apr 8 09:40:04 CEST 2007
Bugs item #1696025, was opened at 2007-04-07 14:40
Message generated for change (Comment added) made by doerwalter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1696025&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: Python Library
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Alexandr V. Demeshko (adem)
Assigned to: Nobody/Anonymous (nobody)
Summary: codecs.EncodedFile() - the same data and file encodings
Initial Comment:
Python version: 2.5 for MS Windows
In Lib/codecs.py in lines 827-829 instead of:
info = lookup(data_encoding)
sr = StreamRecoder(file, info.encode, info.decode,
info.streamreader, info.streamwriter, errors)
should be something like:
data_info = lookup(data_encoding)
file_info = lookup(file_encoding)
sr = StreamRecoder(file, data_info.encode, data_info.decode,
file_info.streamreader, file_info.streamwriter, errors)
----------------------------------------------------------------------
>Comment By: Walter Dörwald (doerwalter)
Date: 2007-04-08 09:40
Message:
Logged In: YES
user_id=89016
Originator: NO
This has already been fixed in svn (r52517/r52518).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1696025&group_id=5470
More information about the Python-bugs-list
mailing list