From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9276 Path: news.gmane.org!not-for-mail From: Alba Pompeo Newsgroups: gmane.linux.lib.musl.general Subject: Re: Fwd: [Rd] [musl] strptime() question Date: Sat, 6 Feb 2016 10:35:28 -0200 Message-ID: References: <20160204160708.GP9349@brightrain.aerifal.cx> <20160204213249.GT9349@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1454762147 2168 80.91.229.3 (6 Feb 2016 12:35:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2016 12:35:47 +0000 (UTC) Cc: r-devel , musl@lists.openwall.com To: Rich Felker Original-X-From: musl-return-9289-gllmg-musl=m.gmane.org@lists.openwall.com Sat Feb 06 13:35:46 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aS25Y-00082n-H0 for gllmg-musl@m.gmane.org; Sat, 06 Feb 2016 13:35:44 +0100 Original-Received: (qmail 1939 invoked by uid 550); 6 Feb 2016 12:35:40 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 1917 invoked from network); 6 Feb 2016 12:35:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BWl1dVxihvO54GlFn+ASRjXQrTSNyMM74baC0skdULw=; b=tZBTm2PzPO7I04rtaWMfmL4Tz/MdcWqgIDv3rJkYkCDFiL2tHeLjK6wAYjJ8gPilX8 LqV5kVEOtH2DeSz6ljJKtMEJA6KKeGIx3BF4Ty8JmTmvjxdR1UxuZGVYlXxVX1oPWnZA YOg3aVVvNTraLLk3q59kbSoC0v/2DHs92FbxhvJIKudNIKeIbShvSI3nrAMnGZaCg3Wa psHBcwmAfoDAkuYOwTHQddttFMv3GSLLqsh5LwX0NxvhY9TCls/HihFoNgA5sHxaVbVZ baTGxKRKPol46LAUV3+fM1So+DoGOA+Hm/HLNqUIfQuiJ5T/mlwmvYl6yDlRORPHlCEq xobw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=BWl1dVxihvO54GlFn+ASRjXQrTSNyMM74baC0skdULw=; b=SniuTG6tFtagrnSECGrHfHOePfi/R1QEdyfIg+EB7/dnH6d5KW7+l1bgMjEXBVswi4 dBZ8Ln5xfKYO4yuYauQ8YP5FJkbGYzAcdPAsPo72kdjYxnJEU6suWFwOY/9949BsoGeB cbi86Ouh/AhQEo6iSnFzUvwOVNyBrzkvWMAbcvbBSlIzg1iul4NDglMvdeIaWUyWAYHf FK6WntkDcnbaMN0QWTlpdypOnl+MFSMZG0bztvotQIbWsxe/kjfwO4qN9/iztv8W3/YQ WpIpf6D+yPv+ppj7K8vTB+G9qUfqFkCVTpO48sBlv/Y3Txo0qis/F91s95eps63Y8I7E 97pg== X-Gm-Message-State: AG10YOQL3CGmKf2Gvt1eUM50auravti5VHljpPuNXiSITQ5GiCEd6aEtUlY4DTfSLdMGT6wye3TETf96ml0QxQ== X-Received: by 10.28.47.9 with SMTP id v9mr14718345wmv.69.1454762128780; Sat, 06 Feb 2016 04:35:28 -0800 (PST) In-Reply-To: <20160204213249.GT9349@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:9276 Archived-At: It is setting TZ and using tzset(). R is not multi-threaded so it is safe. Simon figure out the important settings from the config.log and config.h files on a musl system: /* #undef USE_INTERNAL_MKTIME */ #define HAVE_TM_GMTOFF 1 #define HAVE_TM_ZONE 1 Does this help anyone debug the issue? Simon just went on vacation. On Thu, Feb 4, 2016 at 7:32 PM, Rich Felker wrote: > On Thu, Feb 04, 2016 at 04:35:22PM -0200, Alba Pompeo wrote: >> I forwarded our talk on musl mailing list to R mailing list. >> I got this response. >> Does it help? >> Also, what do you think about making a new email that's sent to both >> musl and R mailing list, that way devs from both projects can >> communicate? It's a tad inefficient for me to keep forwarding messages >> like this back and forth. > > I'm cc'ing both lists now. > >> ---------- Forwarded message ---------- >> From: Simon Urbanek >> Date: Thu, Feb 4, 2016 at 3:01 PM >> Subject: Re: [Rd] [musl] strptime() question >> To: Alba Pompeo >> Cc: r-devel >> >> >> >> On Feb 4, 2016, at 11:20 AM, Alba Pompeo wrote: >> >> > There is incompatibility between R strptime and musl libc. I posted >> > about it on their mailing list, but they need more information I can't >> > provide, so I'm forwarding the message here in hope R developers can >> > help. Thanks. >> >> Generally, it's using the standard tzset() call to set the time zone >> http://pubs.opengroup.org/onlinepubs/009695399/functions/tzset.html > > The tzset function doesn't really do much interesting; it just updates > some global state to match the current value of the TZ environment > variable, but most time.h functions do this already anyway. Anyway > this doesn't really answer the question of what R's strptime function > is doing to add timezone functionality onto the underlying system's > strptime. Is R changing the environment (this is highly unsafe in any > potentially-multithreaded process, BTW)? Is it using the globals set > by tzset to compute adjustments to the result? > > Rich