From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZbzT-000798-NZ for qemu-devel@nongnu.org; Wed, 09 Sep 2015 05:48:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZbzS-0000MT-Sv for qemu-devel@nongnu.org; Wed, 09 Sep 2015 05:48:31 -0400 Sender: Paolo Bonzini References: <1441790938-29042-1-git-send-email-kraxel@redhat.com> <1441790938-29042-7-git-send-email-kraxel@redhat.com> From: Paolo Bonzini Message-ID: <55F00065.9020509@redhat.com> Date: Wed, 9 Sep 2015 11:48:21 +0200 MIME-Version: 1.0 In-Reply-To: <1441790938-29042-7-git-send-email-kraxel@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 6/6] gtk: setlocale for LC_MESSAGES only List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann , qemu-devel@nongnu.org, qemu-stable On 09/09/2015 11:28, Gerd Hoffmann wrote: > Setting other LC_* affects printf behavior and breaks QMP. > We don't have much beside menu item strings localized, so > restrict the locale setting to LC_MESSAGES. > > Signed-off-by: Gerd Hoffmann Cc: qemu-stable@nongnu.org > --- > ui/gtk.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ui/gtk.c b/ui/gtk.c > index a17b1d1..a0b2340 100644 > --- a/ui/gtk.c > +++ b/ui/gtk.c > @@ -1950,7 +1950,7 @@ void gtk_display_init(DisplayState *ds, bool full_screen, bool grab_on_hover) > > s->free_scale = FALSE; > > - setlocale(LC_ALL, ""); > + setlocale(LC_MESSAGES, ""); > bindtextdomain("qemu", CONFIG_QEMU_LOCALEDIR); > textdomain("qemu"); > >