[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
curses: printw displays multibyte string wrong if ASAN is not used
printw() does output multibyte strings only correctly when compiled with ASAN. This likely indicates a curses internal data corruption which has no effect with the different memory layout used by ASAN.
Attached is a archive for reproducing the issue (in an UTF-8 locale).
The output is "Ã¤Ã¶Ã¼Ã" without ASAN and "äöüß" with ASAN.
The contents (must be UTF-8 encoded) are
$ cat Makefile
rm -f main
$ cat main.c
char *mbs = "äöüß";
Main Index |
Thread Index |