bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double column width character written wrongly after refresh


From: Thomas Dickey
Subject: Re: Double column width character written wrongly after refresh
Date: Sat, 31 May 2003 19:03:18 -0400
User-agent: Mutt/1.3.27i

On Wed, May 28, 2003 at 12:02:58AM +0900, Mitsuru Chinen wrote:
> Hello,
> 
> Thanks so much for fixing the former setcchar problem.
> This time, I'd like to report another problem.
> 
> After refresh() is called, a double column character is
> written at wrong place when it is written next to another double
> column character.
> 
> The following sample program is reproduce this problem.
>   http://www.openi18n.org/~chinen/fullwidth.c.gz
> 
> And the following animation gif shows the problem.
>   http://www.openi18n.org/~chinen/result.gif
>   
> Although this program draws '#' as a background character,
> this problem occurs even if it is not drawed.
> 
> Could you please look at it?

I've spent about an hour looking at this, but seem to be overlooking
something.  The gif file itself doesn't show a glitch.  However, running
your test program, I see some overlap effect which is probably what you're
talking about.  Studying waddstr(), it seems that I should be able to
use mbrlen() to detect that the 3-character string is a single multibyte
character.  But it's returning a -2 (which says that it isn't working as
I thought.  I'll try later on a different platform (currently using libutf8
since this platform has some other things I needed to test).
 
> My environment is
>  version : ncurses-5.3 with patches by 2003-05-24
>   config : --with-shared --without-cxx --without-ada --enable-widec
>    OS    : SuSE Linux 8.1 (kernel-2.4.19, glibc-2.2.5)
>   Locale : en_US.UTF-8
> Terminal Emulator : uxterm (included in XFree86 4.2.1)
>    TERM variable  : xterm-color
> 
> Thank you,
> -------
> Mitsuru Chinen
> // AP Linux Technology Center, 
> // Yamato Software Lab., SWG, IBM;
> 
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]