Commit 93965f7a authored by Victor Stinner's avatar Victor Stinner

Issue #19634: time.strftime("%y") now raises a ValueError on Solaris when given

a year before 1900.
parent 235c5e0d
......@@ -650,7 +650,7 @@ time_strftime(PyObject *self, PyObject *args)
return NULL;
}
}
#elif defined(_AIX) && defined(HAVE_WCSFTIME)
#elif (defined(_AIX) || defined(sun)) && defined(HAVE_WCSFTIME)
for(outbuf = wcschr(fmt, '%');
outbuf != NULL;
outbuf = wcschr(outbuf+2, '%'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment