mailing list of musl libc
 help / color / mirror / code / Atom feed
From: bfdamkoehler <bfdamkoehler@sbcglobal.net>
To: musl@lists.openwall.com
Subject: Re: REG_STARTEND (regex)
Date: Thu, 12 Jun 2014 21:15:26 -0400	[thread overview]
Message-ID: <539A50AE.3090102@sbcglobal.net> (raw)
In-Reply-To: <20140612014047.GX179@brightrain.aerifal.cx>

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?





  reply	other threads:[~2014-06-13  1:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-15 10:34 Daniel Cegiełka
2013-01-15 13:42 ` Rich Felker
2013-01-15 15:16   ` Daniel Cegiełka
2013-01-15 15:37     ` John Spencer
2013-01-15 15:50       ` Daniel Cegiełka
2013-01-15 16:13         ` Rob Landley
2013-01-15 18:38         ` John Spencer
2013-01-16 15:41           ` Rob Landley
2013-01-15 16:11     ` Rob Landley
2013-01-15 18:45     ` Rich Felker
2013-01-15 18:55       ` Daniel Cegiełka
2013-01-16 15:42       ` Rob Landley
2013-01-16 16:57         ` Rich Felker
2014-06-11 14:24     ` Justin Cormack
2014-06-12  1:00       ` bfdamkoehler
2014-06-12  1:40         ` Rich Felker
2014-06-13  1:15           ` bfdamkoehler [this message]
2014-06-13  3:00             ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=539A50AE.3090102@sbcglobal.net \
    --to=bfdamkoehler@sbcglobal.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).