Received: from eggs.gnu.org ([2001:4830:134:3::10]:48882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLY47-0006ag-Sn for qemu-devel@nongnu.org; Tue, 19 Jan 2016 10:19:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLY42-0006G8-U2 for qemu-devel@nongnu.org; Tue, 19 Jan 2016 10:19:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLY42-0006G4-OA for qemu-devel@nongnu.org; Tue, 19 Jan 2016 10:19:22 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 512FDC0A1603 for ; Tue, 19 Jan 2016 15:19:22 +0000 (UTC) From: Markus Armbruster References: <1453110880.23289.7.camel@redhat.com> <569D4C69.5070304@redhat.com> <1453208507.18326.77.camel@redhat.com> Date: Tue, 19 Jan 2016 16:19:19 +0100 In-Reply-To: <1453208507.18326.77.camel@redhat.com> (Gerd Hoffmann's message of "Tue, 19 Jan 2016 14:01:47 +0100") Message-ID: <874me9d2bs.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] RFC: running the user interface in a thread ... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: David Airlie , qemu-devel , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Gerd Hoffmann writes: > Hi, > >> That, and so the UI can use localization without corrupting other >> threads that MUST use the C locale (QMP parsing/output of floating point >> is particularly important to get right with '.' instead of ',' for a >> decimal separator). > > A quick look at the setlocale manpage doesn't make clear whenever > threads can have different locales or not. Try uselocale(3). > Related: Possibly we should move UIs to another *process* instead? > At least the ones which use a UI toolkit (i.e. sdl, gtk, cocoa). If we can pull it off...