[prev in list] [next in list] [prev in thread] [next in thread]
List: cygwin
Subject: Re: Seg Fault in strftime
From: Michael Enright <mike () kmcardiff ! com>
Date: 2015-07-31 23:43:49
Message-ID: CAOC2fq_3QkqfvncKUz64897axVXUCWwyq4i=pAsQT-SC3egfQg () mail ! gmail ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic