Code

wreadln: support wide characters
authorMax Kellermann <max@duempel.org>
Mon, 6 Oct 2008 15:03:31 +0000 (17:03 +0200)
committerMax Kellermann <max@duempel.org>
Mon, 6 Oct 2008 15:03:31 +0000 (17:03 +0200)
commit169c8fc6c4b7b92b9ba32eebc90ca7b5b90d1cf9
tree0921a448de85414bf5fb8458af5ef27e80c8e89a
parent36db27016bbb60534c14692861f9490cde4a6967
wreadln: support wide characters

wreadln() didn't distinguish narrow from wide characters, which
resulted in display corruption.  This patch adds a lot of internal
conversions between byte positions, screen positions and character
position, which hopefully fixes all these bugs.  Since these
conversions are quite expensive, the code should be revised and
optimized.
src/wreadln.c