cvs commit: fptools/ghc/lib/std IO.lhs PrelHandle.hsc
Marcin 'Qrczak' Kowalczyk
qrczak@knm.org.pl
Thu, 7 Jun 2001 13:22:36 +0200 (CEST)
On Thu, 7 Jun 2001, Julian Seward wrote:
> Try to improve matters in the text-mode-seek swamp. Only disallow
> text-mode-seeks on Win32, rather than on all platforms. That means
> that seeks in text mode on Unix platforms should work as originally
> (which was the correct H98 behaviour), whilst Win32 generates
> exceptions if you do seeks in text mode.
Seeking will be problematic with text conversions between a byte encoding
and Unicode. Only for stateless encodings seeking is meaningful and the
byte offset is not necessarily equal to the character offset.
I'm not sure what to do with this: easiest is to disallow seeking in text
mode (conversions are meaningful only for text mode), or perhaps have
seeking with the above limitations.
End of line marker conversions is logically a similar concept as encoding
conversion, only the C runtime or OS provides direct support for it, so it
must be treated separately.
--
Marcin 'Qrczak' Kowalczyk