Mercurial > cpython-lru_cache-weakref
diff Modules/cPickle.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 | c6753db9c6af |
| children | cbd4ae74890d |
line wrap: on
line diff
--- a/Modules/cPickle.c Tue Jun 08 18:25:48 2004 +0000 +++ b/Modules/cPickle.c Tue Jun 08 18:52:54 2004 +0000 @@ -3319,7 +3319,7 @@ if (!( s=pystrndup(s,len))) return -1; errno = 0; - d = strtod(s, &endptr); + d = PyOS_ascii_strtod(s, &endptr); if (errno || (endptr[0] != '\n') || (endptr[1] != '\0')) { PyErr_SetString(PyExc_ValueError,
