Ticket #108 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

encoding error on long UTF-8 paste

Reported by: judah Owned by:
Priority: major Milestone:
Version: 0.6 Keywords:
Cc:

Description

Pasting the following input (in a UTF-8 environment), including the trailing newline:

line 4:1:ασδφαδφασφασδφσδφασφξασηδφασδκξφηασδκηφκξσδηφασδξφγδσγφηδσγφξκγδσξηφγαξδφηγακφξηγσφκξαησγδφξκηασδγφκξασδηγφκξαησδγφξασηδφγακσξδηφγασδκξηφγακδσξηφγαξκδσφγδσξηφγαδκσφηγκσξδηφγαξφησγδκφξαησγφκξαδσηφγξσδφηγαδσξφγαησδγφκξαησφγκαξσηδφγακσδξφηγασκξφηαγδφξκαηγσδκφξηαγξδφξα1:ασδφαδφασφασδφσδφασφξασηδφασδκξφηασδκηφκξσδηφασδξφγδσγφηδσγφξκγδσξηφγαξδφηγακφξηγσφκξαησγδφξκηασδγφκξασδηγφκξαησδγφξασηδφγακσξδηφγασδκξηφγακδσξηφγαξκδσφγδσξηφγαδκσφηγκσξδηφγαξφησγδκφξαησγφκξαδσηφγξσδφηγαδσξφγαησδγφκξαησφγκαξσηδφγακσδξφηγασκξφηαγδφξκαηγσδκφξηαγξδφξα

causes the following error:

<stdin>: hWaitForInput: invalid argument (Illegal byte sequence)

Additionally, the last character before the error is output as a '?'.

Change History

Changed 4 years ago by judah

See also #94.

It looks like we'll need to keep our own buffer, and also use hGetBufSome instead of hWaitForInput with ghc>=6.13. See http://hackage.haskell.org/trac/ghc/ticket/4046 .

Changed 4 years ago by judah

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.