Re: [Qemu-devel] [PATCHv3 1/2] ui/curses: Do not assume wchar_t contains unicode

2019-04-27 Thread Kamil Rytarowski
On 27.04.2019 19:57, Samuel Thibault wrote: > Kamil Rytarowski, le sam. 27 avril 2019 19:36:40 +0200, a ecrit: >> On 27.04.2019 18:30, Samuel Thibault wrote: >>> E.g. BSD and Solaris even use locale-specific encoding there. >>> >>> We thus have to go through the native multibyte representation and

Re: [Qemu-devel] [PATCHv3 1/2] ui/curses: Do not assume wchar_t contains unicode

2019-04-27 Thread Samuel Thibault
Kamil Rytarowski, le sam. 27 avril 2019 19:36:40 +0200, a ecrit: > On 27.04.2019 18:30, Samuel Thibault wrote: > > E.g. BSD and Solaris even use locale-specific encoding there. > > > > We thus have to go through the native multibyte representation and use > > mbtowc/wctomb to make a proper convers

Re: [Qemu-devel] [PATCHv3 1/2] ui/curses: Do not assume wchar_t contains unicode

2019-04-27 Thread Kamil Rytarowski
On 27.04.2019 18:30, Samuel Thibault wrote: > E.g. BSD and Solaris even use locale-specific encoding there. > > We thus have to go through the native multibyte representation and use > mbtowc/wctomb to make a proper conversion. > > Signed-off-by: Samuel Thibault Both patches work for me on NetB

[Qemu-devel] [PATCHv3 1/2] ui/curses: Do not assume wchar_t contains unicode

2019-04-27 Thread Samuel Thibault
E.g. BSD and Solaris even use locale-specific encoding there. We thus have to go through the native multibyte representation and use mbtowc/wctomb to make a proper conversion. Signed-off-by: Samuel Thibault --- ui/curses.c | 151 1 file chang