Kaydet (Commit) 93965f7a authored tarafından Victor Stinner's avatar Victor Stinner

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

a year before 1900.
üst 235c5e0d
...@@ -650,7 +650,7 @@ time_strftime(PyObject *self, PyObject *args) ...@@ -650,7 +650,7 @@ time_strftime(PyObject *self, PyObject *args)
return NULL; return NULL;
} }
} }
#elif defined(_AIX) && defined(HAVE_WCSFTIME) #elif (defined(_AIX) || defined(sun)) && defined(HAVE_WCSFTIME)
for(outbuf = wcschr(fmt, '%'); for(outbuf = wcschr(fmt, '%');
outbuf != NULL; outbuf != NULL;
outbuf = wcschr(outbuf+2, '%')) 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