[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in innwstr? (ncursesw-5.2-20020928)
From: |
Thomas Dickey |
Subject: |
Re: bug in innwstr? (ncursesw-5.2-20020928) |
Date: |
Sat, 5 Oct 2002 20:22:55 -0400 |
User-agent: |
Mutt/1.2.5i |
On Sat, Oct 05, 2002 at 07:43:32PM +0200, Michael Bienia wrote:
> Hello,
>
> I'm trying to add wide-char support to tin and have some problems with
> some chars from far east.
...
> ("Before" is the string wrote to the display and "After" is the string
> returned from a screen_contents call at the end of center_line).
> Here also you can see the additional spaces.
>
> Is this a bug in innwstr?
It seems so. After poking around and fixing unrelated minor issues, I can see
that what is happening is that these characters are double-width (occupy two
cells). innwstr() should be smart enough to eat the gaps that are placed by
addch. I'll make a fix for that.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net