Today I found this bug when running my synctime program. It always displays the wrong timezone and thus cannot synchronize correctly. A little investigation shows that it is ftime in cygwin1.dll that caused the problem. This is the minimal test case:
#include <stdio.h> #include <sys/timeb.h> int main() { struct timeb timebuffer; ftime(&timebuffer); printf("%d\n", timebuffer.timezone); return 0; } I am in China and this program should output -480, but with either cygwin1.dll version 1.3.10 or 1.3.9 it outputs a strange number. :-( I tried an early version dll (1003.3.0.0), and all is OK. But other parts of Cygwin seems to require a newer version. I do hope a fix very soon. Oh yes, I am running Chinese Windows 2000. I wish it was not a platform-specific problem. Best regards, Wu Yongwei -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/