[haskeline] #116: control characters in prompt lead to deadlock on 64 bit system
haskeline
haskeline at projects.haskell.org
Wed Oct 19 18:48:39 BST 2011
#116: control characters in prompt lead to deadlock on 64 bit system
---------------------+------------------------------------------------------
Reporter: phercek | Owner:
Type: defect | Status: new
Priority: critical | Milestone:
Version: 0.6 | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment(by judah):
Thanks for the patch! I've applied it to the repo at
http://code.haskell.org/haskeline and released haskeline-0.6.4.5 which
contains the fix for it.
For my future record: wcwidth is supposed to return `-1` for the width of
escape characters, which we handle as a separate case. But due to the
32/64-bit mismatch, it returned a very large size for their width. This
caused an infinite loop in the line-breaking algorithm for wide
characters.
--
Ticket URL: <http://trac.haskell.org/haskeline/ticket/116#comment:1>
haskeline <http://example.org/>
My example project
More information about the Haskeline
mailing list