delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/07/31/19:44:13

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=gl
wOoloi9Q5/70GtCERHad62WK1C+Wz7+qCb3FaeL4QV9WOoDHmb5uIpXzCP9QPESC
ulX/7zObAycQ2M2z+PizEKuD5Yk1fQdOJTcsdLd1tqofxRADJsBMAzKoj6PyV62/
RbILLefDwNDtxHXYRfJO1FWtqgKUWYqnpwzm6N5jA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=HashDx11
DiFDBGdBrFMrMdXEsC4=; b=lh3tm5VjT30c9JLFuYXe4NM8UdOznOAZASlrDSid
AoXYiJE7MaJ+7o4J4C1xTPsiJWi8Sf2IugkmD/RbtTURnnSOWZnWBoLeghG3i3L8
Mz4s6qKWHRvRPdriah4gX3ych9gKQ5ujcDUKgXfnuDZ5tP9xHmgq5Hw+CGi7r3mV
vh0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
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
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)
In-Reply-To: <CAOC2fq-MjJb3HuKHs5cuDMRAMxabXGQKW6heUsmyVbnnWWMXAA@mail.gmail.com>
References: <CAOC2fq9A1DSjy=7Af=wVCkNEsttpd4Fj-0w_nNwnSb76WFt5WA AT mail DOT gmail DOT com> <55BB6F59 DOT 8060905 AT dronecode DOT org DOT uk> <CAOC2fq-MjJb3HuKHs5cuDMRAMxabXGQKW6heUsmyVbnnWWMXAA AT mail DOT gmail DOT com>
Date: Fri, 31 Jul 2015 16:43:49 -0700
Message-ID: <CAOC2fq_3QkqfvncKUz64897axVXUCWwyq4i=pAsQT-SC3egfQg@mail.gmail.com>
Subject: Re: Seg Fault in strftime
From: Michael Enright <mike AT kmcardiff DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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

- Raw text -


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