From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?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?= Newsgroups: gmane.emacs.bugs Subject: bug#48298: Date: Tue, 11 May 2021 23:56:49 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b02d8705c214225d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29560"; mail-complaints-to="usenet@ciao.gmane.io" To: 48298@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 22:58:27 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 1lgZSV-0007Zr-2y for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 22:58:27 +0200 Original-Received: from localhost ([::1]:43690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgZSU-00016k-5X for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 16:58:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgZS6-0000eR-Qi for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 16:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgZS6-0006ru-IH for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 16:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgZS6-0003sj-El for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 16:58:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: =?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?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 May 2021 20:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 48298-submit@debbugs.gnu.org id=B48298.162076662914859 (code B ref 48298); Tue, 11 May 2021 20:58:02 +0000 Original-Received: (at 48298) by debbugs.gnu.org; 11 May 2021 20:57:09 +0000 Original-Received: from localhost ([127.0.0.1]:37635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgZRF-0003rb-Dy for submit@debbugs.gnu.org; Tue, 11 May 2021 16:57:09 -0400 Original-Received: from mail-lj1-f179.google.com ([209.85.208.179]:45901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgZRD-0003r9-BM for 48298@debbugs.gnu.org; Tue, 11 May 2021 16:57:07 -0400 Original-Received: by mail-lj1-f179.google.com with SMTP id v5so26847932ljg.12 for <48298@debbugs.gnu.org>; Tue, 11 May 2021 13:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8p+ILx1GJgR3ibl4fr/6Lha+Gz5Z9p58O2bGUThvspE=; b=RF24R0xTHD3/oaZPEVjiBdRL4yB5t8g7V6s8UYBrzbWv+o6t/y6rP3jRqN04rrtjFP k+yAHL7tJ9UXaJI83/215MXkw7ri9qLgiD/OS1UR8DawXdTMFQ57N/QY4GDV4kAT9QOQ 06R99wL/mlUG6kj55XXCsRUICkrgu6ZBPzpCGqptB1XrRZNc0LoJuvCObz7nCJ4A7SzR +klXrW4nyvL3QCFrPVeedwuy+NZXFmNkr2/LM9Pxq8ys4NvtH66dmBM+ZZfQV+Blcp7/ c5wh0mNgPirpNZ7bYLZs7wBLFI0c3TJ6rxn3q9OusSZNHkEI5cX8fe8J4Ze3r1kfSujh khKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8p+ILx1GJgR3ibl4fr/6Lha+Gz5Z9p58O2bGUThvspE=; b=lEtbciFsLzXTzrwpPsg3MYq4ksTIJSLhnN7RQWAtfoS7ydqEZteCk51vIxuLrDVeA9 ItdlYhLZiirGwIMOqjAzxkkjM7qxthyryEOuUvg0GnadQA7v6jxvWZ0l1ZkxAOUr2Cp9 Ak3+HhsP8rGgY6o/BCJJeb3sIMJTMhYSWofEYH2DFeu27FM3K/nFOFj3HOy3WXqDMIyV erEl9l9G1cLlOckj7+1NRenIQNX5Ai5Y57Lb/Rg12KTZgV6XNQX3xML32OBi11j7QQ33 rAlGHrS8JRrkf3QpDq8gVhAmPXM58CJJhXis+BgFXFypwMCfz2oGDCJo4cM6GqwmtDwq 3igQ== X-Gm-Message-State: AOAM533H7zKv7Dn7VaFn3EI42I9YMnyDfisPNDbLkPT2x/zosZoPAn9X VMBpvp3mgEq+yYwYxGYG9PiPO2Bam+UW2Cltr9Qsonffs2DZtQ== X-Google-Smtp-Source: ABdhPJwbdVwTdYg6pU/l+R7UTkzsLM1dUhMjw2creYwJCyjNkbOHi0aY26xDM6HSXZcAyMnUu8Qmho76qgX866r5NJg= X-Received: by 2002:a2e:8796:: with SMTP id n22mr18768236lji.257.1620766620657; Tue, 11 May 2021 13:57:00 -0700 (PDT) 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:206296 Archived-At: --000000000000b02d8705c214225d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=B2=D1=81, 9 =D0=BC=D0=B0=D1=8F 2021 =D0=B3. =D0=B2 11:54, Basil L. Cont= ovounesios : > Eli Zaretskii writes: > > >> From: "Basil L. Contovounesios" > >> Cc: =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 > >> , 48298@debbugs.gnu.org > >> Date: Sun, 09 May 2021 09:19:47 +0100 > >> > >> > I guess the problem is in decoded-time-set-defaults, if anywhere. > >> > >> Lars? > > > > As the minimum fix, perhaps instead of using zero as the missing year > > we should use 1970, as zero could not be representable on some > > systems. > > Also 1970 is implied by the function's docstring and announcement. > > All tests seem to pass with this: > > > Evgeny, does that fix the error that you see? > It does! (encode-time '(0 30 11 1 1 1970 nil -1 nil)) yielded (0 30600). Thank you guys for your help! --000000000000b02d8705c214225d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=D0=B2=D1=81, 9 =D0=BC=D0=B0=D1=8F 2021 = =D0=B3. =D0=B2 11:54, Basil L. Contovounesios <contovob@tcd.ie>:
Eli Zaretskii <eliz@gnu.org> writes:

>= ;> From: "Basil L. Contovounesios" <contovob@tcd.ie>
>> Cc: =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
>>=C2=A0 <lewwadoo@gmail.com>,=C2=A0=C2=A048298@debbugs.gnu.org
>= > Date: Sun, 09 May 2021 09:19:47 +0100
>>
>> > I g= uess the problem is in decoded-time-set-defaults, if anywhere.
>><= br>>> Lars?
>
> As the minimum fix, perhaps instead of us= ing zero as the missing year
> we should use 1970, as zero could not = be representable on some
> systems.

Also 1970 is implied by th= e function's docstring and announcement.

All tests seem to pass = with this:


Evgeny, does that fix the error that you see?

It does! (encode-time '(0 30 11 1 1= 1970 nil -1 nil)) yielded (0 30600). Thank you guys for your help!
--000000000000b02d8705c214225d--