Thomas Dickey wrote:
On Tue, 2 Jun 2009, Clemens Ladisch wrote:
Thomas Dickey wrote:
+ fix an infinite recursion when adding a legacy-coding 8-bit value
using insch() (report by Clemens Ladisch).
Thanks, but the unctrl() problem itself is still there.
then I need more information: I tested this with the demo_forms program,
and was able to insert 8-bit test with POSIX, en_US and UTF-8 encoding.
Sorry, this problem is no longer related to forms crashes.
The remaining problem is just that unctrl() returns a wrong string for
any characters that would be printable if interpreted as a wide
character.
For example, in UTF-8, 0xff is not a valid character, but the Unicode
character U+00ff would be printable, so unctrl() returns "\377" instead
of the correct "~?".