[Haskell-i18n] SourceForge Project Active
Sven Moritz Hallberg
pesco@gmx.de
03 Sep 2002 11:00:00 +0200
On Tue, 2002-09-03 at 10:46, Martin Norb=E4ck wrote:
> My quickCheck tests found errors in three and four byte encodings:
>=20
> *Text.Encoding.TestUTF8> encodeOne (toEnum 51177)
> [236,159,140]
> *Text.Encoding.TestUTF8> decodeOne [236,159,140]
> (Right '\51148',3,[])
> *Text.Encoding.TestUTF8> encodeOne (toEnum 845466)
> [243,206,154,154]
> *Text.Encoding.TestUTF8> decodeOne [243,206,154,154]
> (Left (InvalidLaterByte 1),1,[206,154,154])
>=20
> 51177 should encode into [236,159,169]
> 845466 should encode into [243,142,154,154]
Ooh. I'm on it, thanks for the test.
> I see you use hugs, you could consider using ghci, it's really nice and
> work exactly like hugs.
Yes, my last coding session on it was done on my PowerBook with Linux,
on which GHC unfortunately doesn't run, yet. :(
Sven Moritz