From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzAxS-0008Qy-Cy for qemu-devel@nongnu.org; Tue, 25 Oct 2016 19:16:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzAxP-0002JV-9a for qemu-devel@nongnu.org; Tue, 25 Oct 2016 19:16:38 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:34118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzAxP-0002JP-3f for qemu-devel@nongnu.org; Tue, 25 Oct 2016 19:16:35 -0400 Date: Wed, 26 Oct 2016 01:16:32 +0200 From: Samuel Thibault Message-ID: <20161025231632.GS2801@var.home> References: <20161015195308.20473-1-samuel.thibault@ens-lyon.org> <20161015195308.20473-5-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161015195308.20473-5-samuel.thibault@ens-lyon.org> Subject: Re: [Qemu-devel] [PATCH 4/5] curses: add option to specify VGA font encoding List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kraxel@redhat.com, pbonzini@redhat.com, berrange@redhat.com, peter.maydell@linaro.org, mjt@tls.msk.ru 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; > > + > > + conv = iconv_open("WCHAR_T", font_charset); > > Is this portable? I confirm it works on at least glibc (thus Linux and other GNUs), MacOS, OpenBSD, FreeBSD, Windows mingw. Samuel