[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't convert control characters
From: |
Mitsuru Chinen |
Subject: |
Re: Can't convert control characters |
Date: |
Wed, 21 May 2003 11:20:51 +0900 |
Thank you for your response.
Thomas Dickey <address@hidden> wrote:
> thanks - will look. offhand, it seems that the problem is that glibc
> treats wcslen() on 8-bit characters as an error. (I believe this is
> a glibc bug, but am resigned to working around those).
I'm afraid the cause of this bug is not in glibc.
I found a check with using wcwidth() is wrong at line 55
in ./ncurses/widechar/lib_cchar.c.
At that line, setcchar() returns ERR when wcwidth() returns negative value.
Because wcwidth() returns -1 when a wide character is non-printable,
setcchar() returns ERR if control character is given.
Regards,
-------
Mitsuru Chinen
// AP Linux Technology Center,
// Yamato Software Lab., SWG, IBM;