Received: from eggs.gnu.org ([2001:4830:134:3::10]:59120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZU9OL-0002Il-6p for qemu-devel@nongnu.org; Tue, 25 Aug 2015 04:15:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZU9OH-0007ng-Su for qemu-devel@nongnu.org; Tue, 25 Aug 2015 04:15:37 -0400 Received: from smtp3.mundo-r.com ([212.51.32.191]:23591 helo=smtp4.mundo-r.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZU9OG-0007nL-Vn for qemu-devel@nongnu.org; Tue, 25 Aug 2015 04:15:33 -0400 From: Alberto Garcia In-Reply-To: <87d1ybpzul.fsf@blackfin.pond.sub.org> References: <20150818235754.GA31625@igalia.com> <87r3mtq9wx.fsf@blackfin.pond.sub.org> <87oahwr4x1.fsf@blackfin.pond.sub.org> <55DB51DC.6070704@redhat.com> <87d1ybpzul.fsf@blackfin.pond.sub.org> Date: Tue, 25 Aug 2015 10:15:30 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] QEMU produces invalid JSON due to locale-dependent code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , Eric Blake Cc: qemu-devel@nongnu.org, Gerd Hoffmann On Tue 25 Aug 2015 09:54:42 AM CEST, Markus Armbruster wrote: > Switching back to C locale whenever some unwanted locale-dependency > breaks the code is problematic, because it involves finding all the > places that break, iteratively (euphemism for "we debug one breakage > after the other, adding temporary locale switches as we go). > > I'd feel much better about confining GTK in its own thread, and > setting only that thread's locale. FWIW GTK+ is not thread safe, all GTK+ code must run in the same thread, so that should already be happening. I assume however that it's the same thread that runs the monitor, so that might not be a solution in the end. Berto