GNU bug report logs - #19874
25.0.50; encode-time not working as expected

Previous Next

Package: emacs;

Reported by: ashish.is <at> lostca.se (Ashish SHUKLA)

Date: Sun, 15 Feb 2015 13:42:01 UTC

Severity: normal

Found in version 25.0.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 19874 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Ashish SHUKLA <ashish.is <at> lostca.se>
Cc: 19874 <at> debbugs.gnu.org
Subject: Re: 25.0.50; encode-time not working as expected
Date: Wed, 25 Feb 2015 09:41:45 -0800
[Message part 1 (text/plain, inline)]
Thanks for the bug report.  My guess is that there's an incompatibility with 
FreeBSD 10.1 amd64 mktime.  I can't reproduce the problem on FreeBSD 9.1 x86.

Please try the attached patch, just for debugging, and then run the following 
one-line shell command:

src/emacs -Q -batch -eval '(progn (setenv "TZ" "Asia/Kolkata") (print 
(encode-time 44 42 6 15 2 2015 0 nil 0)))'

What output do you get?  Here's what I get on Fedora 21 x86-64, which seems correct:

oldtz=Asia/Kolkata tz=XXX-0:00:00 oldTZ=Asia/Kolkata TZ=XXX-0:00:00 2015-02-15 
06:42:44 -1 -> 2015-02-15 06:42:44 0 = 1423982564

Assuming you get different output, can you debug Emacs with GDB to send us more 
details about what's going wrong?  If not, can you give me access to a FreeBSD 
10.1 amd64 machine like yours?
[debug-encode-time.patch (text/x-patch, attachment)]

This bug report was last modified 5 years and 118 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.