ui/curses: do not assume wchar_t contains unicode
commitb7b664a4fe9a955338f2e11a0f7433b29c8cbad0
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 27 Apr 2019 18:33:06 +0000 (27 20:33 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 17 May 2019 11:21:40 +0000 (17 13:21 +0200)
treec2797765d16ef731898850f7e6fcecae03e052a7
parentb0f9690e78827d55a508c73432c73f057f59fd41
ui/curses: do not assume wchar_t contains unicode

E.g. BSD and Solaris even use locale-specific encoding there.

We thus have to go through the native multibyte representation and use
mbrtowc/wcrtomb to make a proper conversion.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: Kamil Rytarowski <n54@gmx.com>
Message-Id: <20190427183307.12796-2-samuel.thibault@ens-lyon.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/curses.c