From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5241 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: REG_STARTEND (regex) Date: Thu, 12 Jun 2014 23:00:35 -0400 Message-ID: <20140613030035.GA179@brightrain.aerifal.cx> References: <20130115134244.GW20323@brightrain.aerifal.cx> <5398FB90.7000109@sbcglobal.net> <20140612014047.GX179@brightrain.aerifal.cx> <539A50AE.3090102@sbcglobal.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1402628456 26535 80.91.229.3 (13 Jun 2014 03:00:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2014 03:00:56 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5246-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 13 05:00:49 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WvHjV-0002M9-08 for gllmg-musl@plane.gmane.org; Fri, 13 Jun 2014 05:00:49 +0200 Original-Received: (qmail 25911 invoked by uid 550); 13 Jun 2014 03:00:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 25902 invoked from network); 13 Jun 2014 03:00:47 -0000 Content-Disposition: inline In-Reply-To: <539A50AE.3090102@sbcglobal.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5241 Archived-At: 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