Mail Archives: geda-user/2014/03/21/16:07:06
--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--
- Raw text -