From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9x7V-0006Dr-Dx for qemu-devel@nongnu.org; Fri, 18 Dec 2015 10:39:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9x7R-0003dm-Br for qemu-devel@nongnu.org; Fri, 18 Dec 2015 10:39:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9x7R-0003di-6s for qemu-devel@nongnu.org; Fri, 18 Dec 2015 10:38:57 -0500 Date: Fri, 18 Dec 2015 16:38:54 +0100 From: Kevin Wolf Message-ID: <20151218153854.GF31910@noname.redhat.com> References: <1441898372-32679-1-git-send-email-berto@igalia.com> <20151218113844.GA31910@noname.redhat.com> <1450445013.15674.38.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1450445013.15674.38.camel@redhat.com> Subject: Re: [Qemu-devel] [PATCH] gtk: use setlocale() for LC_MESSAGES only List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Alberto Garcia , qemu-devel@nongnu.org, Markus Armbruster Am 18.12.2015 um 14:23 hat Gerd Hoffmann geschrieben: > On Fr, 2015-12-18 at 12:38 +0100, Kevin Wolf wrote: > > Am 10.09.2015 um 17:19 hat Alberto Garcia geschrieben: > > > The QEMU code is not internationalized and assumes that it runs under > > > the C locale, but if we use the GTK+ UI we'll end up importing the > > > locale settings from the environment. This can break things, such as > > > the JSON generator and iotest 120 in locales that use a decimal comma. > > > > > > We do however have translations for a few simple strings for the GTK+ > > > menu items, so in order to run QEMU using the C locale, and yet have a > > > translated UI let's use setlocale() for LC_MESSAGES only. > > > > > > Signed-off-by: Alberto Garcia > > > > Not sure why I noticed it only now and if it's related to any recent > > package upgrade on my side (using RHEL 7), but I noticed that non-ASCII > > characters in the GTK UI strings are broken for me and git bisect > > pointed to this commit. > > I guess we need to set LC_CTYPE too. > Can you try whenever the attached patch fixes the issue? Yes, that works for me. Tested-by: Kevin Wolf