3 messages in org.python.python-bugs-list[ python-Feature Requests-920680 ] re...
FromSent OnAttachments
SourceForge.netMar 21, 2004 5:36 pm 
SourceForge.netMar 21, 2004 5:44 pm 
SourceForge.netMar 21, 2004 5:53 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[ python-Feature Requests-920680 ] readline not implemented for UTF-16Actions...
From:SourceForge.net (nore@sourceforge.net)
Date:Mar 21, 2004 5:53:50 pm
List:org.python.python-bugs-list

Feature Requests item #920680, was opened at 2004-03-21 17:37 Message generated for change (Comment added) made by etrepum You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=920680&group_id=5470

Category: Unicode Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bob Ippolito (etrepum) Assigned to: Nobody/Anonymous (nobody) Summary: readline not implemented for UTF-16

Initial Comment: The StreamReader for UTF-16 (all three of them) doesn't implement readline.

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

Comment By: Bob Ippolito (etrepum)

Date: 2004-03-21 17:54

Message: Logged In: YES user_id=139309

I don't need it enough to write a patch, but this is what I used instead.. and it seems like it might work:

try: for line in inFile: tline = translator(line) outFile.write(tline) except NotImplementedError: BUFFER = 16384 bytes = inFile.read(BUFFER) while bytes: lines = bytes.split(u'\n') bytes = lines.pop() for line in lines: tline = translator(line) outFile.write(tline) newbytes = inFile.read(BUFFER) bytes += newbytes if not newbytes and bytes: bytes += u'\n'

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

Comment By: M.-A. Lemburg (lemburg) Date: 2004-03-21 17:44

Message: Logged In: YES user_id=38388

Patches are welcome :-)

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