Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 32305:13656d58d450 legacy-trunk
Patch #774665: Make Python LC_NUMERIC agnostic.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Tue, 08 Jun 2004 18:52:54 +0000 |
| parents | 302d399cfd37 |
| children | 6bc6abba8659 |
line wrap: on
line diff
--- a/Python/compile.c Tue Jun 08 18:25:48 2004 +0000 +++ b/Python/compile.c Tue Jun 08 18:52:54 2004 +0000 @@ -1379,7 +1379,7 @@ 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 @@ #endif { PyFPE_START_PROTECT("atof", return 0) - dx = atof(s); + dx = PyOS_ascii_atof(s); PyFPE_END_PROTECT(dx) return PyFloat_FromDouble(dx); }
