|
Message-ID: <20140613030035.GA179@brightrain.aerifal.cx> Date: Thu, 12 Jun 2014 23:00:35 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: REG_STARTEND (regex) On Thu, Jun 12, 2014 at 09:15:26PM -0400, bfdamkoehler wrote: > On 06/11/2014 09:40 PM, Rich Felker wrote: > >I think the issue is just that you don't have a complete POSIX TZ rule > >for EST5EDT written. With TZ=EST5EDT,M3.2.0/2,M11.1.0/2 (corresponding > >to the current rules in effect for this timezone) I get the expected > >output. Without specifying the full rule like this, I don't think you > >can expect the right behavior since it changes every few years. > >However, I think musl is also wrong not to have some sort of > >meaningful default. I'll look into it more. > I get the correct results using your TZ environment variable. > > Actually, when I first tested with musl I didn't have a TZ > environment variable and the time was off by 4 hours. Setting it > seemed to fix the issue at first. > > My linux machine has the timezone was set by the redhat/centos > system-config-date to New York (I changed it to Detroit since then) > and the "system uses UTC is not checked". This is a binary file but > it ends in EST5EDT,M3.2.0,M11.1.0. > > Should musl be using /etc/localtime if TZ is not defined? See commit f616294914e7c289791d856dca636bbccad5fef7. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.