From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLWUc-0008Q2-Uj for qemu-devel@nongnu.org; Tue, 19 Jan 2016 08:38:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLWUY-0004xC-UY for qemu-devel@nongnu.org; Tue, 19 Jan 2016 08:38:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLWUY-0004x4-Q6 for qemu-devel@nongnu.org; Tue, 19 Jan 2016 08:38:38 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 5196AA37E7 for ; Tue, 19 Jan 2016 13:38:38 +0000 (UTC) Date: Tue, 19 Jan 2016 13:38:33 +0000 From: "Dr. David Alan Gilbert" Message-ID: <20160119133832.GG2398@work-vm> References: <1453110880.23289.7.camel@redhat.com> <569D4C69.5070304@redhat.com> <1453208507.18326.77.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1453208507.18326.77.camel@redhat.com> 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 , =?iso-8859-1?Q?Marc-Andr=E9?= Lureau * Gerd Hoffmann (kraxel@redhat.com) wrote: > 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. > > Related: Possibly we should move UIs to another *process* instead? > At least the ones which use a UI toolkit (i.e. sdl, gtk, cocoa). That does feel safer, if you can find an efficient way to do the graphics. A lot less code running with the privs of the qemu process. Dave > > cheers, > Gerd > > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK