I prepared a patch that fixes this (attached), but I am not entirely convinced it's the proper fix. That's mainly because I just replaced ncurses linking with ncursesw. This is fine for most desktop systems that have wide-char ncurses, but I assume there might be systems you want to support without ncursesw.

Proper way to deal with this would probably be to fallback like this: ncursesw -> ncurses -> curses

Apart from this does adding setlocale(LC_CTYPE, "") call seem sensible?

> I prepared a patch that fixes this (attached), but I am not entirely > convinced it's the proper fix. That's mainly because I just replaced > ncurses linking with ncursesw. This is fine for most desktop systems > that have wide-char ncurses, but I assume there might be systems you

Do we still need this pacth after Ueno's patch?

BTW, please send pinentry related stuff in the future to gnupg-devel. gpa--dev is only for GPA which is just one application using GnuPG.