From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#55635: `make-decoded-time' incorrectly sets DST to nil, it should be -1 (guess) Date: Sun, 29 May 2022 15:10:19 +0200 Message-ID: <87sfos1o3o.fsf@gnus.org> References: <940415ce-2e31-ae18-3e16-8fdc54504a67@gmail.com> <87o7zkbif3.fsf@gnus.org> <96e9d729-2e23-5637-3136-ac29e26aa287@cs.ucla.edu> <87r14f8dhw.fsf@gnus.org> <87zgj23pn9.fsf@gnus.org> <0e506652-fb7d-5707-8247-7747ff1e53b0@gmail.com> <83o7zhlht0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12365"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , 55635-done@debbugs.gnu.org, Maxim Nikulin To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 29 15:11:30 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvIhd-00032D-CK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 May 2022 15:11:29 +0200 Original-Received: from localhost ([::1]:45136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvIhb-0005DO-Q4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 May 2022 09:11:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvIhE-0005DD-E8 for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 09:11:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45736) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvIhC-0007G5-Fq for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 09:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nvIhC-0000UY-95 for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 09:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 May 2022 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55635 X-GNU-PR-Package: emacs Original-Received: via spool by 55635-done@debbugs.gnu.org id=D55635.16538298331855 (code D ref 55635); Sun, 29 May 2022 13:11:02 +0000 Original-Received: (at 55635-done) by debbugs.gnu.org; 29 May 2022 13:10:33 +0000 Original-Received: from localhost ([127.0.0.1]:39633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvIgj-0000Tr-Ke for submit@debbugs.gnu.org; Sun, 29 May 2022 09:10:33 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:33302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvIgf-0000Tc-Ha for 55635-done@debbugs.gnu.org; Sun, 29 May 2022 09:10:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VdmlWgl5cQYcBYZjBTZ6s17LaRT89O22PeyRY6rxsnc=; b=WYzVAvqm6uuM5/40jB+Ez9GqYX HYm2N86m9TWqgUfD0Q1n0tSD/bwWEwUkUpo5U2CPIbj5LHh4wnu7gMJUkuigQKa0oJzctaZ6ursyt ZxN36i9OGmu/jX9BKkGvVtufYKu3izz1tw0p2PJxMCerGCD5MvNr5iBJbMkHwfpUNovs=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvIgV-0004F0-Tp; Sun, 29 May 2022 15:10:22 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEV0L1p1PGCOV3rT yM/////+RlXKAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YFHQw7E9dMBY8AAAGnSURBVDjLbZTbgcQg CEXBaQCcBgQbmEj/ve3FPHR2l6+Yw0VeCRGRqrLW3lw6GTH38AiKaU3VdchgJSoRowf5NIBajIdV IXrFgALGqqYqbyvjA9Dh+IRCDHEt3pyk9xkKvhUuSEC01uZ6eE9XKDyfcAkhWuvFzzdXqPhoWpVR 3N5xAFCd4NDTzKnUaEuB29O4qfeBzB4QuByZMUv119hBUyGUjfqqtx1kN8CSsO8gMlR2E62obQeH izLCpcx3EC50G9cdDNWHYDILRCO5RbhqA+58K/QLpOYS2C8waFmGWMSQatMLjLIUfueXoZr2+GNO cWCn/gf6j2IYIZNvMO85AX8BSz//q8BcsSiuCWgCfyrBDNHpbENm5XYK2gNMuFh3k/4M5QRYY2G3 M+kx+94dwshxSm7hfUPeiXQHZiA+T3mcTe/pccxBRi62ne9nkkaZhbzvEtLKmGAeXld188A+mzjt vY+2bOC1qs4qFsgZIsdz5XQDnE11VL/24HyqyBcf6LYg17704YYG3aA/oMzJuf0GPH8bQPT4jeWy BJkLAMv9SY+2KX4A1oiDSpoAjkYAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDUtMjlUMTI6NTk6 MTkrMDA6MDA8IiopAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTI5VDEyOjU5OjE5KzAwOjAw TX+SlQAAAABJRU5ErkJggg== X-Now-Playing: The Smiths's _The Smiths_: "Pretty Girls Make Graves" In-Reply-To: (Paul Eggert's message of "Sat, 28 May 2022 10:25:51 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:233310 Archived-At: Paul Eggert writes: > With that in mind, here are three suggestions. > > 1. decoded-time-dst should return -1, instead of nil, when given a > 6-element list, since nil means standard time and -1 means DST is > unknown. I think that sounds correct. > 2. make-decoded-time should generate a six-element list unless given a > DST or ZONE arg. I don't think we should do this. Yes, the remaining elements are nonsensical when talking about intervals, but people rely on that function to return its documented value. If somebody wants to do interval calculations and passes in a DST to make-decoded-time, that's a classic "well, don't do that" situation. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no