Hi Judah,

On Sat, Dec 27, 2008 at 08:37:01 -0800, Judah Jacobson wrote:
> The following patch fixes Unicode input on POSIX systems with the
> Haskeline backend.  Haskeline returns decoded Chars, but Darcs expects
> the input to be encoded (which is the behavior of the non-Haskeline
> backend).  This fix re-encodes the input received from Haskeline into
> UTF-8.

Thanks for the explanation, but I think I'm going to need a little more
help understanding this patch.  What do you mean by "Darcs expects the
input to be encoded"?  Is it because we use getLine which just assumes
that the input encoding is ISO-8859-1 (or actually, as I understand it,
the first 256 code points in the Unicode table, which happens to be the
same)?  Also, what if the user is not using UTF-8 (ugh!) in their
terminal?

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

Attachment: signature.asc
Description: Digital signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to