From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5239 Path: news.gmane.org!not-for-mail From: bfdamkoehler Newsgroups: gmane.linux.lib.musl.general Subject: Re: REG_STARTEND (regex) Date: Thu, 12 Jun 2014 21:15:26 -0400 Message-ID: <539A50AE.3090102@sbcglobal.net> References: <20130115134244.GW20323@brightrain.aerifal.cx> <5398FB90.7000109@sbcglobal.net> <20140612014047.GX179@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1402622150 28002 80.91.229.3 (13 Jun 2014 01:15:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2014 01:15:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5244-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 13 03:15:44 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 1WvG5n-0000Nv-PR for gllmg-musl@plane.gmane.org; Fri, 13 Jun 2014 03:15:43 +0200 Original-Received: (qmail 21982 invoked by uid 550); 13 Jun 2014 01:15:42 -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 21974 invoked from network); 13 Jun 2014 01:15:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1402622129; bh=BrVzXQVEHfFy2ajp+2c0uFXLHPr6D/HB3ORdu1/7fkw=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=SCc7IZqFzTeUMqQNLd3+qjGs8Yq2UbR9H15Rm1TjhOxva+BZ6yeBqrjf+gFZmWwlOeSqTTTEkIT4XREmDC3ot5/zgOz80A8RHNupqNmovmwsuqx7y+6FePdcQpVFNJVRyRfygWDZgnvbYemIldteMbGWJaljotdMN/4RhFA1ag8= X-Yahoo-Newman-Id: 447421.4196.bm@smtp111.sbc.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: ZSMDwHQVM1lQ8FiQi98KdJ0ztq6Gb7CcymSczQOUwNbQ6ku DXkkTh.NEBhHLPIU4nH0BuiOQxb33yv_c7ChSDjkh_1rmu8bGhpA6beB1tGY G7MBUex3OHuKCLAJgpza8UnW6ivJpgb4S88VUcOpV0TL7oySebVMdee1ZzPu EZ4ejA19m6_aAE8ETc5jx4jJJniZ32DUrtegFvL59_25vst8.xMy6qGGqa1S jFp85567.RGVfl25zlnUGkxl64KbfLszFdFHpk5nadxkeYyfs5JmMyDiqaQe Ys2065jb8miTIr80hRK._wOWK6GZmnykQKB7Hg8UPZ6bXVkPVuXw_WvMMInP A0.xz8YT6mNZylytssmq3qu3uXw91_i7BgF4tFWgxZmtltWFmTiBlDvPJSxT O5yQvxQoJOJ77GL_s.e4zvAKNI_AoLTIscFdVfVUDfp8qQ6c5DG1l1QA2Hi3 6zRBPVRZm5BTnyOeU1Y0FNO167mASFYK_o5pth3dIpMRObvkHCY7Poz9WgRd uEtvXi8jRkv.h8rQI61uhQv7HRB6VnkbZIKrQL1NW7.1rUA2DuniQKcYl X-Yahoo-SMTP: Np3RzY2swBAB_oRrWub8XEpFIh_m1T4CPAAeBAl1liESQFmqrZM3 X-Rocket-Received: from bfd-lt4.nodomain.nowhere (bfdamkoehler@99.129.244.79 with plain [98.138.31.74]) by smtp111.sbc.mail.ne1.yahoo.com with SMTP; 12 Jun 2014 18:15:29 -0700 PDT User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131030 Thunderbird/17.0.10 In-Reply-To: <20140612014047.GX179@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:5239 Archived-At: 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?