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: 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 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: References: <55BB6F59 DOT 8060905 AT dronecode DOT org DOT uk> Date: Fri, 31 Jul 2015 16:43:49 -0700 Message-ID: Subject: Re: Seg Fault in strftime From: Michael Enright To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 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