[I18n-sig] JapaneseCodecs 1.1 with ISO-2022-JP codec

M.-A. Lemburg mal@lemburg.com
Sat, 25 Nov 2000 00:40:42 +0100


"Martin v. Loewis" wrote:
> 
> > BTW, in the SourceForge Patch Manager there was a patch for
> > fixing the problem exactly described in the quotation above:
> >
> > http://sourceforge.net/patch/?func=detailpatch&patch_id=101477&group_id=5470
> >
> > The sender of this patch was me (I did not have the SourceForge
> > account when I posted it).
> 
> As Marc-Andre points out, this has a number of limitations, e.g. it
> does assume LE, and does not support \r and other line-breaking
> characters.
> 
> I really wonder why readline couldn't do buffering - for plain files,
> it appears that this has to do with the file/stream position, but
> StreamReaders don't support seek, anyway.

They do: StreamReaders inherit all methods from the underlying
stream... and mixing .readline(), .read() and .seek() etc.
can cause some really big troubles :-(

-- 
Marc-Andre Lemburg
______________________________________________________________________
Company:                                        http://www.egenix.com/
Consulting:                                    http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/