delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/22/04:59:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <adah AT netstd DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Cygwin1.dll bug in ftime
Date: Fri, 22 Mar 2002 17:58:10 +0800
MIME-Version: 1.0
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 <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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019