delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=gmail.com; s=20120113; | |
h=date:from:to:subject:message-id:mail-followup-to:references | |
:mime-version:content-type:content-disposition | |
:content-transfer-encoding:in-reply-to:user-agent; | |
bh=d4EjyvOCph9qnxRwWgXfQONd40snpjYnr8vLBg+l1Bs=; | |
b=kQcxA8WPXnuPa2oxcd8Y4H6blX6b7AHq9uFoRvIvKkFvqlqE/D5JCOW7MYqVYyc3cC | |
83wKvIBhRNv8EhTzWkOC2Zph5gCgimDXObtNBl2y7OUhYnPDgMz8oxGoioCPvAGyFUU7 | |
CU63/aCbUMnHIY2Reh2IddUiabZjo27+ErCgKjn0rj/15nCf0WaH2dZODGdJHNOmzeyQ | |
bvn0N1nqxXs0Be68x+5LFEAJiRTs27rCW1lcAsMs5fIoTzGSr5DGwU9uicWuL/tzfCwg | |
xJY9TvJjWcsQRfj2d+gk96KTwpZVS+oRptVLHw2K0pjDvSr/RXcEB1cB1Xvkm3cFSAJh | |
1acA== | |
X-Received: | by 10.112.47.3 with SMTP id z3mr11314149lbm.34.1395433378750; |
Fri, 21 Mar 2014 13:22:58 -0700 (PDT) | |
Date: | Sat, 22 Mar 2014 00:22:55 +0400 |
From: | Vladimir Zhbanov <vzhbanov AT gmail DOT com> |
To: | geda-user AT delorie DOT com |
Subject: | Re: [geda-user] LC_NUMERIC - problems due to decimal comma |
Message-ID: | <20140321202255.GA24077@localhost.localdomain> |
Mail-Followup-To: | geda-user AT delorie DOT com |
References: | <532C0332 DOT 8070107 AT unige DOT ch> |
<1395429317 DOT 3920 DOT 3 DOT camel AT sexualharassmentpanda DOT lan DOT akerlind DOT nu> | |
<20140321200643 DOT GA12569 AT shavo DOT dd-wrt> | |
MIME-Version: | 1.0 |
In-Reply-To: | <20140321200643.GA12569@shavo.dd-wrt> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
Reply-To: | geda-user AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | geda-user AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Fri, Mar 21, 2014 at 01:06:43PM -0700, Andrew Poelstra wrote: > On Fri, Mar 21, 2014 at 08:15:17PM +0100, Jonatan Ã…kerlind wrote: > > On fre, 2014-03-21 at 10:15 +0100, Juergen Harms wrote: > > > How about a solution, that does (in src/main.c, right after the call to > > > setlocale (LC_ALL,""); - it imports the locale from the environment) > > > call setlocale (LC_NUMERIC,"en_US.UTF-8 )? > > > > I think it would be better to use a portable locale like POSIX or C to > > avoid the dependency of needing the en_US.UTF-8 locale. > > > > It would be better still to replace the output functions with > locale-independent ones (eg g_ascii_* and friends, or our own > pcb_printf which has an option somewhere to force '.' decimal > points. There is already a patch on launchpad which fixes the issue with decimal point: https://bugs.launchpad.net/pcb/+bug/1074268/+attachment/3968574/+files/0001-Use-LC_NUMERIC-C-totally-everywhere-within-the-progr.patch
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |