Re: [Qemu-devel] [PATCHv4 0/2] ui/curses: BSD portability fixes

2019-05-14 Thread Gerd Hoffmann
On Sat, Apr 27, 2019 at 08:33:05PM +0200, Samuel Thibault wrote: > BSD needs a few fixes for wide character manipulations. > > Difference with v1: > - Fix unitialized value in error message > > Difference with v2: > - Add cchar_t manipulation fix > > Difference with v3: > - use mbrtowc/wcrtomb

[Qemu-devel] [PATCHv4 0/2] ui/curses: BSD portability fixes

2019-04-27 Thread Samuel Thibault
BSD needs a few fixes for wide character manipulations. Difference with v1: - Fix unitialized value in error message Difference with v2: - Add cchar_t manipulation fix Difference with v3: - use mbrtowc/wcrtomb instead of mbtowc/wctomb - use MB_LEN_MAX instead of MB_CUR_MAX to avoid using a VLA.