This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients Gerrit.Holl, eric.smith
Date 2010-11-28.16:09:29
SpamBayes Score 9.78782e-06
Marked as misclassified No
Message-id <>
There's an error in time_ctime where it expects the length of the string to be fixed:

    if (p[24] == '\n')
        p[24] = '\0';

It doesn't count on the year having 5 digits. It should probably say (untested):
    l = len(p);
    if (l > 0 && p[l-1] == '\n')
        p[l-1] = '\0';

I'll whip up a patch and some tests. I'm not sure if the tests will work on platforms other than Linux. I'll see what I can find out about ctime and large values.
Date User Action Args
2010-11-28 16:09:31eric.smithsetrecipients: + eric.smith, Gerrit.Holl
2010-11-28 16:09:31eric.smithsetmessageid: <>
2010-11-28 16:09:29eric.smithlinkissue10563 messages
2010-11-28 16:09:29eric.smithcreate