From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#12392: emacs-gtk misinterprets floating-point numbers under certain locales on openSUSE 12.2 Date: Sun, 23 Sep 2012 19:27:08 +0200 Organization: Linux Private Site Message-ID: <87k3vk8xar.fsf@Rainer.invalid> References: <87r4qbodec.fsf@Rainer.invalid> <1544800.869GeMQOQf@thinkpad.home> <2377593.YnO2rOpBpl@thinkpad.home> <505DED2A.8040302@swipnet.se> <505DED94.9030505@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1348421297 23637 80.91.229.3 (23 Sep 2012 17:28:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Sep 2012 17:28:17 +0000 (UTC) To: 12392@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 23 19:28:22 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TFpyf-00062g-GK for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Sep 2012 19:28:21 +0200 Original-Received: from localhost ([::1]:49825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFpya-0003a9-Pj for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Sep 2012 13:28:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFpyY-0003a1-Lp for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 13:28:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFpyX-0001dH-He for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 13:28:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFpyX-0001dB-E7 for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 13:28:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFq0I-0002bu-54 for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 13:30:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87r4qbodec.fsf@Rainer.invalid> Resent-From: Achim Gratz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Sep 2012 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12392 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13484213599959 (code B ref -1); Sun, 23 Sep 2012 17:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Sep 2012 17:29:19 +0000 Original-Received: from localhost ([127.0.0.1]:51457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFpzb-0002aa-0P for submit@debbugs.gnu.org; Sun, 23 Sep 2012 13:29:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39171) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFpzY-0002aQ-4U for submit@debbugs.gnu.org; Sun, 23 Sep 2012 13:29:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFpxl-0001PZ-Nx for submit@debbugs.gnu.org; Sun, 23 Sep 2012 13:27:26 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:59387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFpxl-0001PU-Kx for submit@debbugs.gnu.org; Sun, 23 Sep 2012 13:27:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFpxk-0003Wx-LE for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 13:27:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFpxj-0001PA-AA for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 13:27:24 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFpxj-0001P6-33 for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 13:27:23 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TFpxl-0005Wm-IV for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 19:27:25 +0200 Original-Received: from pd9eb2cd7.dip.t-dialin.net ([217.235.44.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Sep 2012 19:27:25 +0200 Original-Received: from Stromeko by pd9eb2cd7.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Sep 2012 19:27:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb2cd7.dip.t-dialin.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:3Ns4UsCI9qXfQCpG8U6EHOiDrIo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64822 Archived-At: Jan Djärv writes: > BTW, does doing setlocale LC_NUMERIC before gtk_init make things work? Not from within emacs, only if it is set as an environment variable. The locale is reset again to the environment when gstreamer is initialized, which is likely a bug in gstreamer. The main window is already mapped at that time and the command loop is running. The proper fix is likely to not bother with fixup_locale at all in its current form, but either implement the lisp reader without locale-dependent functions or getting a locale object on entry, change the locale, do whatever it needs to do under changed locale and then restore the locale. This is what libraries are often doing for parsing configuration files, anyway. There are also some hints that glib expects / recommends to call setlocale, textdomain, bind_textdomain and bind_textdomain_codeset early in main on order to properly initialize it. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada