Message182725
I tried to reproduce the issue and copied /usr/share/zoneinfo/posix/Asia/Calcutta to /etc/localtime as suggested in msg134382, but test_imaplib passes on 2.7/3.2/3.3/3.4.
I wrote a C program to test the output of mktime:
$ cat mk.c
#include <stdio.h>
#include <time.h>
int main() {
struct tm buf;
char outbuf[80];
time_t tt;
buf.tm_year = 2000-1900;
buf.tm_mon = 1;
buf.tm_mday = 1;
buf.tm_hour = 5;
buf.tm_min = 30;
buf.tm_sec = 0;
buf.tm_wday = 5;
buf.tm_yday = 1;
buf.tm_isdst = 0;
tt = mktime(&buf);
printf("mktime: %9.1f\n", (double)tt);
strftime(outbuf, 80, "%c", &buf);
printf("outbuf: %s\n", outbuf);
return 0;
}
$ gcc -Wall -Wextra -O -ansi -pedantic mk.c -o mk
$ ./mk
mktime: 949363200.0
outbuf: Tue Feb 1 05:30:00 2000
Kasun, can you still reproduce the failure?
If so, could you try the attached C program? |
|
Date |
User |
Action |
Args |
2013-02-23 08:17:58 | ezio.melotti | set | recipients:
+ ezio.melotti, barry, belopolsky, r.david.murray, ysj.ray, kasun |
2013-02-23 08:17:57 | ezio.melotti | set | messageid: <1361607477.99.0.296572195388.issue11882@psf.upfronthosting.co.za> |
2013-02-23 08:17:57 | ezio.melotti | link | issue11882 messages |
2013-02-23 08:17:57 | ezio.melotti | create | |
|