From: Victor Stinner Date: Sat, 23 Nov 2013 13:59:33 +0000 (+0100) Subject: Issue #19634: time.strftime("%y") now raises a ValueError on Solaris when given X-Git-Tag: v3.4.0b1~69^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93965f7a6bb1e762f7985c6fe247596a3a0e56df;p=thirdparty%2FPython%2Fcpython.git Issue #19634: time.strftime("%y") now raises a ValueError on Solaris when given a year before 1900. --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index ca399069948a..d3878b95d99f 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -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, '%'))