X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Fri, 21 Mar 2014 13:06:43 -0700 From: Andrew Poelstra To: geda-user AT delorie DOT com Subject: Re: [geda-user] LC_NUMERIC - problems due to decimal comma Message-ID: <20140321200643.GA12569@shavo.dd-wrt> References: <532C0332 DOT 8070107 AT unige DOT ch> <1395429317 DOT 3920 DOT 3 DOT camel AT sexualharassmentpanda DOT lan DOT akerlind DOT nu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <1395429317.3920.3.camel@sexualharassmentpanda.lan.akerlind.nu> User-Agent: Mutt/1.5.22+19 (8f62001989cc) (2013-10-16) 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 Precedence: bulk --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 21, 2014 at 08:15:17PM +0100, Jonatan =C5kerlind 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= =20 > > setlocale (LC_ALL,""); - it imports the locale from the environment)=20 > > call setlocale (LC_NUMERIC,"en_US.UTF-8 )? >=20 > 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. Andrew --=20 Andrew Poelstra Mathematics Department, University of Texas at Austin Email: apoelstra at wpsoftware.net Web: http://www.wpsoftware.net/andrew --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJTLJvTAAoJEHrQqRxAvQCRx0oH/RLC9bf3t5ysJh16rlOgUVo6 P5S1FFbNkmaeFzSPXeS32VlqpoYqkhGefl/sNtNAl+zrb/LgWajl0Rd5MUxnR3S+ xtWh1x0yv1zsCBWFmSo0C0vxDcBUxMf0UtXGUHx/YaJ26LhZAV1nygW2MIBatE5e qtlVI6COArA7EF0qAFvpqZLISX8kPM8dhQbM66afZGmkn1ZHsJkSQOACUpaKrFjO itMfVnsu4PjLfNUKx/Flr+bP6WPmO514FcvDleZQ4F6V8E4MN4uCvCQ+TD1dOA7C 4qu7DPA40Mu7Pc0VmSHxBCEJM7d4VIBoFGPolBzpB4dMcPYI8zWwqWdkI9drlHM= =aXb/ -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--