[Python-checkins] cpython: Issue #19634: time.strftime("%y") now raises a ValueError on Solaris when given

victor.stinner python-checkins at python.org
Sat Nov 23 15:00:17 CET 2013


http://hg.python.org/cpython/rev/b7fd5d8e9968
changeset:   87418:b7fd5d8e9968
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Nov 23 14:59:33 2013 +0100
summary:
  Issue #19634: time.strftime("%y") now raises a ValueError on Solaris when given
a year before 1900.

files:
  Modules/timemodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/timemodule.c b/Modules/timemodule.c
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -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, '%'))

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list