From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ashish.is@lostca.se (Ashish SHUKLA) Newsgroups: gmane.emacs.bugs Subject: bug#19874: 25.0.50; encode-time not working as expected Date: Sun, 15 Feb 2015 19:10:44 +0530 Organization: alt.religion.emacs Message-ID: <86vbj35m3n.fsf@chateau.d.if> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1424007764 27615 80.91.229.3 (15 Feb 2015 13:42:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2015 13:42:44 +0000 (UTC) To: 19874@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 15 14:42:34 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YMzSz-0002fm-NX for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 14:42:33 +0100 Original-Received: from localhost ([::1]:35450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMzSz-0001LB-7E for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 08:42:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMzSc-0000z7-Hd for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 08:42:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMzST-00025A-WE for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 08:42:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMzST-000256-T2 for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 08:42:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YMzST-0008Ha-Nq for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 08:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ashish.is@lostca.se (Ashish SHUKLA) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Feb 2015 13:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142400768131784 (code B ref -1); Sun, 15 Feb 2015 13:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Feb 2015 13:41:21 +0000 Original-Received: from localhost ([127.0.0.1]:44430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMzRo-0008GZ-6K for submit@debbugs.gnu.org; Sun, 15 Feb 2015 08:41:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57328) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMzRl-0008GM-WF for submit@debbugs.gnu.org; Sun, 15 Feb 2015 08:41:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMzRb-0001eN-Eb for submit@debbugs.gnu.org; Sun, 15 Feb 2015 08:41:12 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMzRb-0001eJ-CB for submit@debbugs.gnu.org; Sun, 15 Feb 2015 08:41:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMzRV-0008C4-M8 for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 08:41:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMzRQ-0001c7-0F for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 08:41:01 -0500 Original-Received: from aloka.lostca.se ([178.63.46.202]:61128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMzRP-0001bu-Hv for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 08:40:55 -0500 Original-Received: from aloka.lostca.se (aloka [127.0.0.1]) by aloka.lostca.se (Postfix) with ESMTP id 430CBE4E for ; Sun, 15 Feb 2015 13:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=lostca.se; h=from:to :subject:date:message-id:mime-version:content-type; s=howrah; bh=Kdi+iir2pIwOulKHcGB2J6eW+bk=; b=K4yRTNQ5h1WsVSIGgrKunljO48sn jYJ4AcUdczy1xGtGcwgqS+tvsR1xcD5r0mZ+sBF+VCqgTbtxrkL2I3OLwFlxck66 1JrVJ3inHzsRQBwfgH2b/jApZtAbGbhiYZbfXNHm6DhcFxw/SopytvbIgw9EXSmr eqz+O4Mm3EkCDP0= Original-Received: from chateau.d.if (aloka [IPv6:::1]) by aloka.lostca.se (Postfix) with ESMTPSA id 95A51E4C for ; Sun, 15 Feb 2015 13:40:52 +0000 (UTC) Original-Received: from chateau.d.if (chateau.d.if [IPv6:::1]) by chateau.d.if (OpenSMTPD) with ESMTP id 99afb81d for ; Sun, 15 Feb 2015 19:10:48 +0530 (IST) X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 X-Uptime: 6:41PM up 1 day, 30 mins, 13 users, load averages: 0.19, 0.16, 0.13 X-Operating-System: FreeBSD/FreeBSD 10.1-RELEASE-p5/amd64 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Attribution: =?UTF-8?Q?=E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7?= Organisation: alt.religion.emacs X-Hashcash: 1:20:150215:bug-gnu-emacs@gnu.org::IhI14+pAG82exPur:00000000000000000000000000000000000000003sTX User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (amd64-portbld-freebsd10.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99431 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I'm running FreeBSD 10.1 (amd64). My /etc/localtime points to "Asia/Kolkata" (Indian Standard Time, UTC+0530) timezone. For "Date: Sun, 15 Feb 2015 06:42:44 +0000 (UTC)": #v+ (encode-time 44 42 6 15 2 2015 0 nil 0) =3D> (21727 62092) =3D 1423962764 #v- #v+ >>> print gmtime(1423962764) time.struct_time(tm_year=3D2015, tm_mon=3D2, tm_mday=3D15, tm_hour=3D1, tm_= min=3D12, tm_sec=3D44, tm_wday=3D6, tm_yday=3D46, tm_isdst=3D0) >>> print localtime(1423962764) time.struct_time(tm_year=3D2015, tm_mon=3D2, tm_mday=3D15, tm_hour=3D6, tm_= min=3D42, tm_sec=3D44, tm_wday=3D6, tm_yday=3D46, tm_isdst=3D0) #v- If it was "Date: Sun, 15 Feb 2015 06:42:44 +0530": #v+ (encode-time 44 42 6 15 2 2015 0 nil 19800) =3D> (21727 62092) #v- The expected output for the time specified in UTC should be: (21728 16356) =3D 1423982564 #v+ >>> print gmtime(1423982564) time.struct_time(tm_year=3D2015, tm_mon=3D2, tm_mday=3D15, tm_hour=3D6, tm_= min=3D42, tm_sec=3D44, tm_wday=3D6, tm_yday=3D46, tm_isdst=3D0) >>> print localtime(1423982564) time.struct_time(tm_year=3D2015, tm_mon=3D2, tm_mday=3D15, tm_hour=3D12, tm= _min=3D12, tm_sec=3D44, tm_wday=3D6, tm_yday=3D46, tm_isdst=3D0) #v- I've come across while trying to figure out cause for a bug[1] report while ago. In GNU Emacs 25.0.50.1 (amd64-portbld-freebsd10.1, GTK+ Version 3.14.7) of 2015-02-06 on chateau.d.if Windowing system distributor `The X.Org Foundation', version 11.0.11407000 Configured using: `configure --localstatedir=3D/var --without-compress-install --with-dbus --with-file-notification=3Dgfile --with-gconf --with-gif --with-gnutls --with-gsettings --with-jpeg --with-m17n-flt --with-imagemagick --with-lib= otf --with-png --with-toolkit-scroll-bars --with-rsvg --with-tiff --with-x --with-xft --with-xim --with-xml2 --with-xpm --with-x-toolkit=3Dgtk3 --with-sound=3Dalsa --x-libraries=3D/usr/local/lib --x-includes=3D/usr/local/include --prefix=3D/usr/local --mandir=3D/usr/lo= cal/man --infodir=3D/usr/local/share/emacs/info/ --build=3Damd64-portbld-freebsd10= .1 'CFLAGS=3D-O2 -g -march=3Dcorei7 -fstack-protector -fno-strict-aliasing' CPPFLAGS=3D-I/usr/local/include 'LDFLAGS=3D -L/usr/local/lib -Wl,-rpath=3D/usr/local/lib -ltinfo -fstack-protector'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dscim locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: paredit-mode: t shell-dirtrack-mode: t global-auto-complete-mode: t auto-complete-mode: t delete-selection-mode: t display-time-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent messages: Mark set [4 times] (21727 62092) Mark saved where search started Quit Mark saved where search started [3 times] [2 times] Mark saved where search started [3 times] Mark set [3 times] delete-backward-char: Text is read-only Making completion list... Load-path shadows: /home/abbe/.emacs.d/elisp/sx.el/sx hides /home/abbe/.emacs.d/elisp/sx /home/abbe/.emacs.d/elisp/apel/env hides /usr/local/share/emacs/25.0.50/lis= p/env /home/abbe/.emacs.d/elisp/apel/timezone hides /usr/local/share/emacs/25.0.5= 0/lisp/timezone /home/abbe/.emacs.d/elisp/emms/lisp/tq hides /usr/local/share/emacs/25.0.50= /lisp/emacs-lisp/tq Features: (shadow flyspell ispell hashcash footnote nnir emacsbug sendmail quail debug edebug misearch multi-isearch eieio-opt help-mode compface gnus-fun mm-arch= ive qp sort smiley gnus-cite gnus-async gnus-bcklg gnus-ml disp-table gnus-topic utf-7 nndraft nnmh nnmaildir network-stream nsm starttls bbdb-gnus bbdb-sna= rf mail-extr nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache epa-file epa epg spam spam-stat bbdb-com warnings bbdb gnus-uu y= enc gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig mm-u= rl nnmairix nnml gnus-sum gnus-group gnus-undo supercite regi gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message idna rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader mail-utils server paredit sx-load sx-tab sx-switchto sx-search sx-notify sx-interaction sx-inbox sx-question-list sx-question-mode sx-question-print sx-user sx-favorites sx-networks sx-site sx-compose sx-tag markdown-mode sx-babel sx-button sx-question sx-method sx-filter sx-auth sx-cache sx-requ= est sx-encoding json sx-time sx let-alist helm-config helm-autoloads async-bytecomp async helm-aliases bison-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs gtags quack cmuscheme scheme tango-dark-theme caml tuareg_indent tuareg speedbar sb-ima= ge ezimage dframe smie coffee-mode cider tramp-sh cider-mode cider-repl cider-eldoc cider-interaction cider-doc org-table cider-test cider-stacktra= ce cider-client nrepl-client queue cider-util ewoc dash emms-player-mpd tq emms-cache emms-info-ogginfo emms-info-mp3info emms-info later-do emms-playlist-mode emms-player-vlc emms-player-mplayer emms-player-simple emms-source-playlist emms-source-file emms-setup emms emms-compat tramp tramp-compat tramp-loaddefs trampver shell blog metaweblog xml-rpc timezone pym static apel-ver product url-http tls url url-proxy url-privacy url-expa= nd url-methods url-history mailcap url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-cookie url-domsuf url-util url-parse auth-source gnus-util mm-util mail-prsvr password-cache url-gw url-vars xml muse-html muse-xml-common cus-edit cus-start cus-load muse-publish muse-project muse-protocols info muse-regexps wid-edit muse muse-nested-tags muse-mode org-agenda org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-ma= cs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs auto-complete-config auto-complete popup slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-fu= zzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl elp slime-parse slime gud apropos compile etags xr= ef eieio byte-opt bytecomp byte-compile cl-extra seq cconv eieio-core cl-gener= ic pcase arc-mode archive-mode noutline outline easy-mmode pp comint ansi-color ring hyperspec thingatpt browse-url slime-autoloads clojure-mode rx derived edmacro kmacro easymenu imenu scim-bridge mule-util elscreen advice help-fns dired iswitchb bbdb-autoloads w3m-load erlang-start boxquote cl-macs rect cl gv cl-loaddefs cl-lib delsel time paren time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-m= ode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 = md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-= tty emacs) Memory information: ((conses 16 789746 115688) (symbols 48 110602 0) (miscs 40 1234 2274) (strings 32 284138 30822) (string-bytes 1 15430510) (vectors 16 99528) (vector-slots 8 1286063 42005) (floats 8 509 1071) (intervals 56 8699 446) (buffers 976 41)) References: [1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18899 Please let me know if you need more information. Thanks! =2D-=20 Ashish SHUKLA =E2=80=9CIt now costs more to amuse a child than it once did to educate his= father.=E2=80=9D Sent from my Emacs --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJU4KHdAAoJEMdGz6nnT6SwJ/MP/25qGew3oPQ7OB8bzmR7lW7A oFVE+RYRUaJRn9nkyQs/9KRNniKiUNYL5L6cju8SJCAzq7N/PyLfHuObjI15QZLa yva19cuRi0gWnGIWrap1FZnwsLzqb5p6Q1KNCYZbqzR303WTRFbfk/Bxcl9H9wDE BumW2xXMhtC1pcC8+c+NNsLkssjhQ9uLcPFaognbuS/FeBjXhbHF3FBV2Pk81G2X 3IJvcZOPxAdOlKm/3YJPyUAQKPf0QNwbzHMi0ypTguik30Y17hxAhxWC9EAXNprf a1yAkMXOtl8pQaEITaSMAlQ4R7g3TNoJxFpBBIq3KIsPivEFxsFAaRzokFKBIo7a VEDSHL1CxBd+ttYQ4nNQBYz2/Nppo1hHHX600kXHba5K139vhV0WP4gdOt/Iij+/ ANRaX54UcngU7FmgcRFuRxeAwpdqy+iKojb47H8qU/jq60EjuhmO7btKeaeLGf/P 4IG7Povxq5CdAVzd/hmTaYd7JcIEOF1qHF8MFn/wRMMV/wehY6nEkyKwCAn50EBg Rce4WY7FN8W6O7jJFSP3b5pIdjxle/hbakG6ULHxXmQYAtUVBsUbfUwq9fvMCDju ANPaZ8FQQhUwyHnlWsg9ZWrpOeYUThqireewlPMW7TxOJk6tdAxyrXFIDGZK5TaE /1BTv6paGF4rX5SI3xZA =ahL9 -----END PGP SIGNATURE----- --=-=-=--