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

a year before 1900.
This commit is contained in:
Victor Stinner 2013-11-23 14:59:33 +01:00
parent 235c5e0dd6
commit 93965f7a6b

View file

@ -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, '%'))