From 737ea82a5abd448b3e214b44d7d3c579b77e8155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 8 Jun 2004 18:52:54 +0000 Subject: Patch #774665: Make Python LC_NUMERIC agnostic. --- Python/compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 15159f840e..dd80ae4e71 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1379,7 +1379,7 @@ parsenumber(struct compiling *c, char *s) Py_complex z; z.real = 0.; PyFPE_START_PROTECT("atof", return 0) - z.imag = atof(s); + z.imag = PyOS_ascii_atof(s); PyFPE_END_PROTECT(z) return PyComplex_FromCComplex(z); } @@ -1387,7 +1387,7 @@ parsenumber(struct compiling *c, char *s) #endif { PyFPE_START_PROTECT("atof", return 0) - dx = atof(s); + dx = PyOS_ascii_atof(s); PyFPE_END_PROTECT(dx) return PyFloat_FromDouble(dx); } -- cgit v1.2.1