Re: [Qemu-devel] [PATCH 4/5] curses: add option to specify VGA font encoding

2016-10-25 Thread Samuel Thibault
Hello, It seems that in the flurry of qemu-devel mails, I missed this answer. Paolo Bonzini wrote: > > +#ifdef CONFIG_ICONV > > +if (font_charset) { > > +unsigned char ch; > > +wchar_t wch; > > +char *pch, *pwch; > > +size_t sch, swch; > > +iconv_t conv

Re: [Qemu-devel] [PATCH 4/5] curses: add option to specify VGA font encoding

2016-10-15 Thread Paolo Bonzini
> +#ifdef CONFIG_ICONV > +if (font_charset) { > +unsigned char ch; > +wchar_t wch; > +char *pch, *pwch; > +size_t sch, swch; > +iconv_t conv; > + > +conv = iconv_open("WCHAR_T", font_charset); Is this portable? It seems safer to convert to UTF-

[Qemu-devel] [PATCH 4/5] curses: add option to specify VGA font encoding

2016-10-15 Thread Samuel Thibault
This detects and uses iconv to convert glyphs from the specified VGA font encoding to unicode. Signed-off-by: Samuel Thibault --- configure | 37 + include/sysemu/sysemu.h | 1 + qemu-options.hx | 5 - ui/curses.c | 41 +

Re: [Qemu-devel] [PATCH 4/5] curses: add option to specify VGA font encoding

2016-06-23 Thread Markus Armbruster
Samuel Thibault writes: > This detects and uses iconv to convert glyphs from the specified VGA font > encoding to unicode. > > Signed-off-by: Samuel Thibault [...] > diff --git a/qemu-options.hx b/qemu-options.hx > index ce535a9..2187886 100644 > --- a/qemu-options.hx > +++ b/qemu-options.hx > @

[Qemu-devel] [PATCH 4/5] curses: add option to specify VGA font encoding

2016-06-22 Thread Samuel Thibault
This detects and uses iconv to convert glyphs from the specified VGA font encoding to unicode. Signed-off-by: Samuel Thibault --- configure | 37 + include/sysemu/sysemu.h | 1 + qemu-options.hx | 20 ui/curses.c