From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74853 invoked by alias); 31 Jul 2015 23:43:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 74845 invoked by uid 89); 31 Jul 2015 23:43:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f53.google.com Received: from mail-la0-f53.google.com (HELO mail-la0-f53.google.com) (209.85.215.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 31 Jul 2015 23:43:53 +0000 Received: by lacct8 with SMTP id ct8so19927686lac.2 for ; Fri, 31 Jul 2015 16:43:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=SnzU31eF5Zo9jtGCNb/QjzaZs5KfYkh1UKGTq/QQseo=; b=idDJHRbArD1N3tGLin8lczoeaIr4abLZ94EI8BhBJDfCJN40eY62pnJG29HGFvXRWp qOh23M2goxC1S3DSNYLLh7aPAHNSBEWpa7rK3UIttaNERxbmWEeh2Nq+E39I49mDX8+s b4+MJrI/VEay9NSxTZPOt/Eu0MqlyO6zLnZV4kYY6Q/wiVXZKc9sWJR9RZvVt+rgytD4 WhrxvFDFSpg/a+tQUAjpuEhyDSuT4UjgBaA7w2oGSZJg8dn9Tdhtkd53nnjKK0I40CMj UBmbMu3dAlXIzUiyZSdHz5mSUy38MQIyAQdsdjVq3d8i0zctb1W4Vx/ZHw07Zloy7VT6 7p4w== X-Gm-Message-State: ALoCoQkSPLPrL/0gfOJvJs/P1wDz2hGoxXqZxNNB7KyEeV6ZvAbq54axCCUzVSMZgilWvTupM2bK MIME-Version: 1.0 X-Received: by 10.152.5.65 with SMTP id q1mr5926599laq.110.1438386229892; Fri, 31 Jul 2015 16:43:49 -0700 (PDT) Received: by 10.152.110.129 with HTTP; Fri, 31 Jul 2015 16:43:49 -0700 (PDT) In-Reply-To: References: <55BB6F59.8060905@dronecode.org.uk> Date: Fri, 31 Jul 2015 23:43:00 -0000 Message-ID: Subject: Re: Seg Fault in strftime From: Michael Enright To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00480.txt.bz2 On Fri, Jul 31, 2015 at 12:50 PM, Michael Enright wrote: > If I do > struct tm zeroed = {0}; > manually_initialized.tm_year = 2000; > strftime(buf, buf_size, "%Z", &zero_initialized); > The printed time zone is PST (TZ happens to be "America/Los_Angeles") > Apologies, I actually did this consistently but the report above is wrong. > struct tm zeroed = {0}; > zeroed.tm_year = 2000; > strftime(buf, buf_size, "%Z", &zeroed); -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple