(original) (raw)
changeset: 87418:b7fd5d8e9968 user: Victor Stinner victor.stinner@gmail.com date: Sat Nov 23 14:59:33 2013 +0100 files: Modules/timemodule.c description: Issue #19634: time.strftime("%y") now raises a ValueError on Solaris when given a year before 1900. diff -r 271cc3660445 -r b7fd5d8e9968 Modules/timemodule.c --- a/Modules/timemodule.c Sat Nov 23 15:55:38 2013 +0200 +++ b/Modules/timemodule.c Sat Nov 23 14:59:33 2013 +0100 @@ -650,7 +650,7 @@ 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, '%')) /victor.stinner@gmail.com