cpython: 652de09a3a1a (original) (raw)
Mercurial > cpython
changeset 87238:652de09a3a1a
Issue #19634: Fix time_strftime() on AIX, format is a wchar_t* not a PyObject* [#19634]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Mon, 18 Nov 2013 02:43:29 +0100 |
parents | 0031ac40806a |
children | 259c82332199 |
files | Modules/timemodule.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-)[+] [-] Modules/timemodule.c 3 |
line wrap: on
line diff
--- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -650,7 +650,7 @@ time_strftime(PyObject *self, PyObject * return NULL; } } -#elif defined(_AIX) +#elif defined(_AIX) && defined(HAVE_WCSFTIME) for(outbuf = wcschr(fmt, '%'); outbuf != NULL; outbuf = wcschr(outbuf+2, '%')) @@ -660,7 +660,6 @@ time_strftime(PyObject *self, PyObject * if (outbuf[1] == L'y' && buf.tm_year < 0) { PyErr_SetString(PyExc_ValueError, "format %y requires year >= 1900 on AIX");