[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: |
Thu, 22 May 2003 11:00:40 +0900 |
Hello,
Thomas Dickey <address@hidden> wrote:
> > 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.
>
> ok (the last few occurrences of wcwidth that I fixed were for the case
> when its parameter was a printable 8-bit character). At the moment it's
> not clear whether "non-printable" in this sense applies to control
> characters, or non-spacing characters.
I applyed "non-printable" to control characters.
I meant "non-printable" as the character classification of Locale.
Namely, when "non-printable" characters are checked by iswprint(),
the function returns 0.
Control characters are not able to be included in print character class
according to POSIX.
I suppose non-spacing characters are classified as printable character
and its width is 0.
Regards,
-------
Mitsuru Chinen
// AP Linux Technology Center,
// Yamato Software Lab., SWG, IBM;