From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70322: 30.0.50; format-seconds with %z doesn't handle zero input correctly Date: Wed, 10 Apr 2024 15:21:59 +0200 Message-ID: <871q7djqtk.fsf@gmx.net> References: <87v84pa67l.fsf@gmail.com> <861q7dwhs2.fsf@gnu.org> <87bk6h8jyi.fsf@gmail.com> <86zfu1v0cx.fsf@gnu.org> Reply-To: Stephen Berman 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="7838"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: =?UTF-8?Q?G=C3=A9za?= Herman , 70322@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 10 15:23:13 2024 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 1ruXuy-0001nI-Vs for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Apr 2024 15:23:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruXuo-0003sL-0I; Wed, 10 Apr 2024 09:23:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ruXum-0003rv-8s for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 09:23:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ruXul-0007Jv-VK for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 09:22:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ruXuu-0006Oy-Ef for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 09:23:08 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Apr 2024 13:23:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70322 X-GNU-PR-Package: emacs Original-Received: via spool by 70322-submit@debbugs.gnu.org id=B70322.171275535424189 (code B ref 70322); Wed, 10 Apr 2024 13:23:08 +0000 Original-Received: (at 70322) by debbugs.gnu.org; 10 Apr 2024 13:22:34 +0000 Original-Received: from localhost ([127.0.0.1]:52357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruXuJ-0006HN-3c for submit@debbugs.gnu.org; Wed, 10 Apr 2024 09:22:33 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:37289) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruXu3-0006ED-1r for 70322@debbugs.gnu.org; Wed, 10 Apr 2024 09:22:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1712755319; x=1713360119; i=stephen.berman@gmx.net; bh=19dM9hQrkPhW/rMIdc3vEQJrnX5JV/rRxDB48anuhNY=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=IsfV17LV5v4i6AmOPcdmMJGL6LOV8NQ4xAuCf99GdByfCu3cbeWa+e4wMF1NJdWp 0aUUWbaV7l4WvsyseW9PZepxUR9GmEeZWpMTkh76mZbsjSS8hExJF2CPfIxB0J7HW yKBhH2tWbRNB/5hYL+f+HpeEsvH/wkfW5DKSt1b+n2PmTo7kzRz9C/yMmXN1Ckn86 rg4KLD/BZg9Q8Q1AAvHxfPzrpzevQ3F2YHyd/qgHtF7d9Vzbng2sWuc/wdKZT/2mp FYKSkyXdEzQmO/X1NmbvliyVfGJemHwG26+pvcfEVuohsn9klsx9X6A0w6irXu1zI CRCnKhEFxc62wLEAHw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfs ([94.134.94.133]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N7zBb-1spPlM30XD-0152RJ; Wed, 10 Apr 2024 15:21:59 +0200 In-Reply-To: <86zfu1v0cx.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 Apr 2024 16:00:30 +0300") X-Provags-ID: V03:K1:8Gc1UGw7Wq0y8Vnk7jikZxfGUX5uoUS4yZ8g5lXEAZGHOdRUKr2 dSsTT1FkH10rFCQahWwxEYhSQKWpUeqbAQAj02xgzSVxBcLLiiKR5Elqz+dcuTskQH3WPuq GGxvy8oW11izX47qY2xMRDXan2qH+7jbToDFClRgsf0BgquSu0k2ApO9cj5wjoT8xsilooJ PmEA+RltH+8t2Em95x9qQ== UI-OutboundReport: notjunk:1;M01:P0:VQjRiM+PK/Q=;/cVtMjA5h8s0VNBzbKpdW7MTtYW Dnue+kbTYgadB/4d+784+sRyxUKJt4pP6Ry7hF+vdNMw95cFcK+YDx83+IeWiSEg8xJwwcNxP odM9N8JrkNvG7NoDXxhaJWvhYSCxc5xmHwO+NN2N7vtybtS+2KeYeRgBCEv9ehLxFMHU9Jh4m KtHPNSvHLAeGBGpmaW8Ah0cv+TIPQE1adUfK2IGKYP7cw6B1I77TE6F2hX4VreN4zYlT+eYOx 4dWLYQUP5BegOXww9oip27SDQT+j+s/PkWReqse0mr/Ii9bACKTCAggM85wSmlPkB5jay/V8y ZmiRdjyeWSkaK14VXOdwBVL+rb6SISVHD2Pw/jrUM8BbD0ChaJ9qDgwLEhtOpGr1eJhOsBcqU fgDKkMYmoJ3V+iN63zVVYJO5SH5yrc/XNw5jWjdkXOj+dDWJy8fx47SzeQwc6GS3PRaIg4BVK F59xgwjqBFnHyd7TjFc5/B7giKY4EnReGQaOYVjyjZD8LKh/AsqE7r2Lnoksk5Afl+YyIH/nl FxmdwaDoEwAomQ6nW/1rX9TnKbU7hyzpKUr5e7MlKTf/hs2bvbcbcT25YCVN8gr1AfPE14PvD 1Wd/bak38P5zC9nzi1oYOr16GvVDp3OU4X4Yn032dXWaAVl1YFSzvQ1TqfGvVzSipIX5LayIf oKMLXz9jho24oFYRBRPwY0S+c83F50S5uYgds3oMiRBO3w+F9Ypy5q5tATkdYQyOLTNFWxrLL mF7L+muROGM2xxdlw8kqP2PWNbDz2vEHKqNGb4TUtS+Dyz7LvtXMrdfeGCleP57E+TWvmeI0 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283048 Archived-At: On Wed, 10 Apr 2024 16:00:30 +0300 Eli Zaretskii wrote: >> From: Herman, G=C3=A9za >> Cc: Herman G=C3=A9za , >> 70322@debbugs.gnu.org >> Date: Wed, 10 Apr 2024 14:44:52 +0200 >>=20 >>=20 >> Eli Zaretskii writes: >>=20 >> > Does the patch below give good results? >>=20 >> Yes, both yours and Stephen's patch fix the problem > > Thanks. > > Stephen, any argumentation for which one is better? AFAICT both give the same results, but since yours specifically targets the case where %z is used, which directly addresses the bug report, it is conceptually the better fix. Steve Berman