summaryrefslogtreecommitdiff
path: root/Modules/stropmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-06-08 18:52:54 +0000
committerMartin v. Löwis <martin@v.loewis.de>2004-06-08 18:52:54 +0000
commit737ea82a5abd448b3e214b44d7d3c579b77e8155 (patch)
treeb0f710ba716db5247dbb6ac88e0a20ea8623f716 /Modules/stropmodule.c
parent6ccc9a99dfbb2575daa8e01a8e8e3531b61a9d60 (diff)
downloadcpython-git-737ea82a5abd448b3e214b44d7d3c579b77e8155.tar.gz
Patch #774665: Make Python LC_NUMERIC agnostic.
Diffstat (limited to 'Modules/stropmodule.c')
-rw-r--r--Modules/stropmodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c
index 8eb64a070a..ce19a053a0 100644
--- a/Modules/stropmodule.c
+++ b/Modules/stropmodule.c
@@ -838,7 +838,6 @@ PyDoc_STRVAR(atof__doc__,
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 @@ strop_atof(PyObject *self, PyObject *args)
}
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++;