Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <000701c1d188$1401bc20$0610a8c0@wyw> From: "Wu Yongwei" To: Subject: Cygwin1.dll bug in ftime Date: Fri, 22 Mar 2002 17:58:10 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 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 #include 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/