From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#48290: 27.2; Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) Date: Sat, 08 May 2021 18:16:01 +0100 Message-ID: <87a6p5kuy6.fsf@tcd.ie> References: <83zgx588pg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34907"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48290@debbugs.gnu.org, =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 08 19:17:25 2021 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 1lfQZw-0008yt-RO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 19:17:24 +0200 Original-Received: from localhost ([::1]:45116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfQZv-0004qr-U3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 13:17:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfQZc-0004Sf-2b for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 13:17:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39752) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfQZa-0005Q2-6L for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 13:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfQZa-0003NM-2D for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 13:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 May 2021 17:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48290 X-GNU-PR-Package: emacs Original-Received: via spool by 48290-submit@debbugs.gnu.org id=B48290.162049417012943 (code B ref 48290); Sat, 08 May 2021 17:17:02 +0000 Original-Received: (at 48290) by debbugs.gnu.org; 8 May 2021 17:16:10 +0000 Original-Received: from localhost ([127.0.0.1]:51292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfQYk-0003Mh-I8 for submit@debbugs.gnu.org; Sat, 08 May 2021 13:16:10 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:44843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfQYi-0003MX-QB for 48290@debbugs.gnu.org; Sat, 08 May 2021 13:16:09 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id l13so12295428wru.11 for <48290@debbugs.gnu.org>; Sat, 08 May 2021 10:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=a65OMhpJsy1VrLLQcBBAqlq/zrOTc8AzBR+20D37FXs=; b=T6tLqsil+BwI5hXjiFVqHrKQHJbOHboqulxGSk0pKIGafs3CIocq9lxvxXzfyRs0O7 MwEHrCEbcXa8tv78wPJHpnPbXvfBEtlFplzehiUNJq2BQmeZ2jVHfGowiaXonFzcJwWG BqkSg6yFTkb8nDIDpY/KkUl9ghe6O28JmgyBTjYP5jux1hoy+k0cCPvHF09ezKemUv80 Xit5NeWWaPBg3sbHJo+pOCpioeQgo29Eu/m6/2E/S3twEJ2SH/ftttEznSjVQrk2Ja4t VEelArOjfbUtWwaG50LDiLVnILYOqHKXsYanmJdLRFSYmblOwIeNln8bVFrBw7fqLioa gTyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=a65OMhpJsy1VrLLQcBBAqlq/zrOTc8AzBR+20D37FXs=; b=OSH+3zwo84nNlihX61c/8G69MWtuYvrnYkxgFMLnROOgQSQyxx16MRW1W+zxOJ2GkO CBqJ/B3+kYJr2apd1iF9TPoPa5mO+voBu2glpNHOpl3eF3NwMuBDkvERE3dsnakTOB8c JLJjZ2AUH7Wcd6thAYzmcateNz+aYii9OSB5/VpHuUCuf7UlRZwonp3TfsdPehTw8qqk Zp2ENP/AUGz6+gC8k54pgRp+NaBCCqcOALL6+w4I+LsiACpORtE1nUJle/S053igbOuT 0h6ICO2VbTAo4h/AHevg/1IobT7acg3m26NgupOXEx022cQk7ffHmhMa/piqgr4mTHwl jsSA== X-Gm-Message-State: AOAM5323DMfG7qcxOu9TaGAjRUNq/NYGD5lKpdc2idKLKTXrA2hfZc2M dIjtqhCexPCZfYWzlZP2u4oRTw== X-Google-Smtp-Source: ABdhPJx6ue5gC2tjU9PtU37YMTP4qH1JeiIcWodeQdO8agpec2eqKOaDOCeWUHbaU/hIPnJ6bNcjpA== X-Received: by 2002:adf:b30a:: with SMTP id j10mr16236475wrd.417.1620494162929; Sat, 08 May 2021 10:16:02 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id t10sm19394488wmf.16.2021.05.08.10.16.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 May 2021 10:16:02 -0700 (PDT) In-Reply-To: <83zgx588pg.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 08 May 2021 19:57:15 +0300") 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:206024 Archived-At: Eli Zaretskii writes: >> From: =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9C=D0=B8=D1=85=D0= =B0=D0=B9=D0=BB=D0=BE=D0=B2 >> >> Date: Sat, 8 May 2021 19:41:14 +0300 > > Why do you think it's a bug. I'm not Evgeny, but I think it's because the titular time spec includes defaults set by decoded-time-set-defaults: (parse-time-string "11:30") ;; =3D> (0 30 11 nil nil nil nil -1 nil) (decoded-time-set-defaults (parse-time-string "11:30")) ;; =3D> (0 30 11 1 1 0 nil -1 nil) Here's the context: https://emacs.stackexchange.com/q/64686/15748 > Year 0 is 1970 years before the epoch. Ah, I missed the last part in the docstring of encode-time: Years before 1970 are not guaranteed to work. On some systems, year values as low as 1901 do work. So I don't know whether my suggested use of decoded-time-set-defaults is wrong, or whether that function should set the year to 1970, as might be assumed from its docstring. Thanks, --=20 Basil