bug-ncurses
[Top][All Lists]
Advanced

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

bug in innwstr? (ncursesw-5.2-20020928)


From: Michael Bienia
Subject: bug in innwstr? (ncursesw-5.2-20020928)
Date: Sat, 5 Oct 2002 19:43:32 +0200
User-agent: Mutt/1.4i

Hello,

I'm trying to add wide-char support to tin and have some problems with
some chars from far east.
I'm using tinw-1.5.15 (<ftp://ftp.tin.org/pub/tinw-1.5.15.tar.bz2>)
linked against ncursesw-5.2-20020928. I'm running tinw in a xterm using
an UTF-8 locale. The problematic article is
<address@hidden> posted to tw.bbs.sports.baseball.npb
Compare the subject at group-level with the info-line.

Here is some output from tin (from some additional code to help me
debug; UTF-8 encoding)
|Before:      4   o       16    -25 養父鐵戰力外通告
|After :      4   o       16    -25 養 父 鐵 戰 力 外 通 告
As you see there are additional spaces which shouldn't be there.
"Before" is the string as it get passed to WriteLine at
group.c:build_sline(). "After" is the string which is returned from
screen_contents called directly after WriteLine. WriteLine uses mvaddstr
to display the string and screen_contents uses innwstr to read from the
screen. This also happens when I use mvaddwstr to display the string.

Here is the output for screen.c:center_line() (center_line displays the
subject correctly):
|cl:Before: 養父鐵戰力外通告
|cl:After : 養 父 鐵 戰 力 外 通 告
("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?
If no, what else is the problem?

Michael





reply via email to

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