Mercurial > cpython-lru_cache-weakref
diff Modules/stropmodule.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 | f66b3a3509c7 |
| children | 8cb686dd6e64 6fb46e87d5f9 |
line wrap: on
line diff
--- a/Modules/stropmodule.c Tue Jun 08 18:25:48 2004 +0000 +++ b/Modules/stropmodule.c Tue Jun 08 18:52:54 2004 +0000 @@ -838,7 +838,6 @@ static PyObject * strop_atof(PyObject *self, PyObject *args) { - extern double strtod(const char *, char **); char *s, *end; double x; char buffer[256]; /* For errors */ @@ -854,7 +853,7 @@ } errno = 0; PyFPE_START_PROTECT("strop_atof", return 0) - x = strtod(s, &end); + x = PyOS_ascii_strtod(s, &end); PyFPE_END_PROTECT(x) while (*end && isspace(Py_CHARMASK(*end))) end++;
