[Haskell-i18n] SourceForge Project Active
Martin Norbäck
d95mback@dtek.chalmers.se
03 Sep 2002 10:46:44 +0200
--=-qT9I5yxX1QwjxL+YU9yL
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
tis 2002-09-03 klockan 01.06 skrev Sven Moritz Hallberg:
> With the ICFP contest finally over, I have just committed mine to CVS
> (thanks for setting it up Ashley!). I hope it is of reasonable quality,
> I've not performance-tested it. I'm looking forward to all feed-back.
My quickCheck tests found errors in three and four byte encodings:
*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])
51177 should encode into [236,159,169]
845466 should encode into [243,142,154,154]
I see you use hugs, you could consider using ghci, it's really nice and
work exactly like hugs.
Regards,
Martin
--=20
Martin Norb=E4ck d95mback@dtek.chalmers.se =20
Kapplandsgatan 40 +46 (0)708 26 33 60 =20
S-414 78 G=D6TEBORG http://www.dtek.chalmers.se/~d95mback/
SWEDEN OpenPGP ID: 3FA8580B
--=-qT9I5yxX1QwjxL+YU9yL
Content-Type: application/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: För information se http://www.gnupg.org/
iD8DBQA9dHb0kXyAGj+oWAsRAroTAJ9oHhEoFhtZPXeXsNv4X/VtATyIoACdEPWi
ZEVSJnUeGSFa4+hfCuI6FFE=
=FRxf
-----END PGP SIGNATURE-----
--=-qT9I5yxX1QwjxL+YU9yL--