From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode,gmane.comp.lib.gnulib.bugs Subject: bug#54764: encode-time: make DST and TIMEZONE fields of the list argument optional ones Date: Wed, 20 Apr 2022 21:41:53 +0300 Message-ID: <83ilr3siku.fsf@gnu.org> References: <5ed963b2-3fa8-48d8-627e-bc0571d15b43@gmail.com> <149de00f-115b-5367-414f-c7700ef8966b@cs.ucla.edu> <2dd15844-01b3-0144-740c-185ec8488a81@cs.ucla.edu> <4a23f3a4-fe8f-d396-49d8-10034803be63@gmail.com> <52fb10fb-892a-f273-3be8-28793f27e204@cs.ucla.edu> <5cd820d4-ae67-43d4-9e63-c284d51ff1e4@gmail.com> <83tuapvcxs.fsf@gnu.org> <6efc5d24-34a2-fd30-cd20-fe4ac3e48310@cs.ucla.edu> <83fsm8tdzl.fsf@gnu.org> <9e4781b2-2ffa-b1ce-09b4-ead82cad9038@cs.ucla.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7482"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-orgmode@gnu.org, manikulin@gmail.com, bug-gnulib@gnu.org, 54764@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 20 21:31:03 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 1nhG2Z-0001lt-BF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Apr 2022 21:31:03 +0200 Original-Received: from localhost ([::1]:37660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhG2Y-0005aj-8F for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Apr 2022 15:31:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhFI6-00038j-3d for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2022 14:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhFI5-0006dy-R8 for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2022 14:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhFI5-0008Ml-PU for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2022 14:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Apr 2022 18:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54764 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54764-submit@debbugs.gnu.org id=B54764.165048012832093 (code B ref 54764); Wed, 20 Apr 2022 18:43:01 +0000 Original-Received: (at 54764) by debbugs.gnu.org; 20 Apr 2022 18:42:08 +0000 Original-Received: from localhost ([127.0.0.1]:47464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhFHE-0008LZ-BV for submit@debbugs.gnu.org; Wed, 20 Apr 2022 14:42:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhFHC-0008L5-7R for 54764@debbugs.gnu.org; Wed, 20 Apr 2022 14:42:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhFH5-0006VA-V3; Wed, 20 Apr 2022 14:41:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=G0F8djEQa12wsV9AGmRNooJCpq/UAIOBawltgRDnV9g=; b=BTasmeC6fnhI +iuCYWwOlKwMQu+76M+vRRyZ2lU+dM7wkKTg1PBuMKhp8UM7nxXpK/S04uX9pXthg6IPk0ah/8ekk yYl8Z8794n3nRRoSZAZ1U8K/vPdciNHsGTbDNCpUCrvNYie+TGDevDp5rJdkDJx9qBQo0zI/lBHDo OODcdrYkBTNLZF1fx69zSSUixgNkCiEmhFTvAOhZbHxvyy4yLRfGLh+0rkW9NpaFMGbI6XevV+dAY TlNsTOGiwnAhS+SbkK7xmZZwk7IRPmXvBElikyLrEl4fwVlHVJ766PRD7m2uxe7yh7+1ApO67mn4S lJqUX7GbIUs40z1zx2pJcQ==; Original-Received: from [87.69.77.57] (port=3326 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhFH5-0002I0-Da; Wed, 20 Apr 2022 14:41:59 -0400 In-Reply-To: <9e4781b2-2ffa-b1ce-09b4-ead82cad9038@cs.ucla.edu> (message from Paul Eggert on Wed, 20 Apr 2022 11:19:29 -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:230326 gmane.emacs.orgmode:144635 gmane.comp.lib.gnulib.bugs:45798 Archived-At: > Date: Wed, 20 Apr 2022 11:19:29 -0700 > Cc: manikulin@gmail.com, emacs-orgmode@gnu.org, 54764@debbugs.gnu.org, > Gnulib bugs > From: Paul Eggert > > > Thanks, the test-gettime-res test says "gettime_res returned 625000 > > ns", which is a strange number: it doesn't fit any MS-Windows system > > time resolution figure I know about. Do you happen to know what does > > this number represent, and why it is the result of gettime-res.c when > > it runs on MS-Windows? > > It comes from current_timespec samples taken by gettime_res. Evidently > something is going wrong, either in gettime_res or in current_timespec. > > I stared at the code a bit and see one possible problem, which I fixed > by installing the attached patch into Gnulib. I then generated a new > test-gettime-res.tgz compressed tarball (also attached); could you give > it a try? > > This tarball is the result of running ./gnulib-tool as before, except I > added an extra print statement executed if you pass an extra argument to > that test program. So if you run the test and it's still outputting an > outlandish value for the resolution, please run the command: > > gltests/test-gettime-res x > > and let's take a look at its (long) debugging output. I get the same result, and moreover I see no differences between this and the previous tarball, and no printouts in test-gettime-res.c. Did you perhaps attach the wrong tarball this time? Thanks. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oFhVFpNiYGIZogAAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 21:44:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kCpxFZNiYGK3XwAAG6o9tA (envelope-from ) for ; Wed, 20 Apr 2022 21:44:19 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0614F194FD for ; Wed, 20 Apr 2022 21:44:19 +0200 (CEST) Received: from localhost ([::1]:39638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhGFN-0000b2-BB for larch@yhetil.org; Wed, 20 Apr 2022 15:44:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhFH7-00020s-4Q; Wed, 20 Apr 2022 14:42:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhFH5-0006VA-V3; Wed, 20 Apr 2022 14:41:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=G0F8djEQa12wsV9AGmRNooJCpq/UAIOBawltgRDnV9g=; b=BTasmeC6fnhI +iuCYWwOlKwMQu+76M+vRRyZ2lU+dM7wkKTg1PBuMKhp8UM7nxXpK/S04uX9pXthg6IPk0ah/8ekk yYl8Z8794n3nRRoSZAZ1U8K/vPdciNHsGTbDNCpUCrvNYie+TGDevDp5rJdkDJx9qBQo0zI/lBHDo OODcdrYkBTNLZF1fx69zSSUixgNkCiEmhFTvAOhZbHxvyy4yLRfGLh+0rkW9NpaFMGbI6XevV+dAY TlNsTOGiwnAhS+SbkK7xmZZwk7IRPmXvBElikyLrEl4fwVlHVJ766PRD7m2uxe7yh7+1ApO67mn4S lJqUX7GbIUs40z1zx2pJcQ==; Received: from [87.69.77.57] (port=3326 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhFH5-0002I0-Da; Wed, 20 Apr 2022 14:41:59 -0400 Date: Wed, 20 Apr 2022 21:41:53 +0300 Message-Id: <83ilr3siku.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-Reply-To: <9e4781b2-2ffa-b1ce-09b4-ead82cad9038@cs.ucla.edu> (message from Paul Eggert on Wed, 20 Apr 2022 11:19:29 -0700) Subject: Re: bug#54764: encode-time: make DST and TIMEZONE fields of the list argument optional ones References: <5ed963b2-3fa8-48d8-627e-bc0571d15b43@gmail.com> <149de00f-115b-5367-414f-c7700ef8966b@cs.ucla.edu> <2dd15844-01b3-0144-740c-185ec8488a81@cs.ucla.edu> <4a23f3a4-fe8f-d396-49d8-10034803be63@gmail.com> <52fb10fb-892a-f273-3be8-28793f27e204@cs.ucla.edu> <5cd820d4-ae67-43d4-9e63-c284d51ff1e4@gmail.com> <83tuapvcxs.fsf@gnu.org> <6efc5d24-34a2-fd30-cd20-fe4ac3e48310@cs.ucla.edu> <83fsm8tdzl.fsf@gnu.org> <9e4781b2-2ffa-b1ce-09b4-ead82cad9038@cs.ucla.edu> X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org, manikulin@gmail.com, emacs-orgmode@gnu.org, 54764@debbugs.gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650483859; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=G0F8djEQa12wsV9AGmRNooJCpq/UAIOBawltgRDnV9g=; b=FqBLIvKaykAtAaflGXT0LVuv8AblcCHGzdIfxQpoKaaU4p9vecrURC2pA98v3ZOD4McEnu zbS+ff98Gnkstb1Fi796z7aOWxx1JVgkbcvmp+FUDpOWoroeK6P4IE2LY+JN1jbejhq2Yg 8erkWG7G6bhClHi/YqvrVbtnUQoebYma6IWwKucqb7wHEMrQxx9/ZkRG6cFf2+ohkWHmfJ CQyr/fXswLOJqx4P90ZyZeKfnUaMrK9W53Q5LKOaH2DTrdVKJs834cKyIFcGzC7t+p1L0x bHjnKrDPia9ZXZCp4QiIVMMrf9pqR+tHT/7POMlKzye+pENRxXYaCZ+k9UaBkw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650483859; a=rsa-sha256; cv=none; b=EOn13VCmUw99MBbX9EK5pN6FL5jlHLVjrJ6pR6SwR7PiqbA4Wt5lL/UY2KbskMqYgmi5qL 3uGL9EJkz/MO543P6Y8sRv9gSHSE+XOsocXjGjzbAckGwpEUeB6a1n9MP00YF1BM8cdkpL upkKCsxvf8BGo26R0rCSmExhX9b4ZqxcHPeK5Gn1pS0pXpu9SLXUPW2GxwAWTLPNE3FW+3 YSdUJk0NI7euqaW4AGVv0wux6X/CMqvW6K3uaNS9mjUJDOAXq8DiySMFEbKoJVRwHeQ/Bl +EkrX6raitNUmjeb+v0lBin8pnddchRSel7aAwGwd8/RJ1UYnlDWeJbNWELtAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BTasmeC6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.24 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BTasmeC6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0614F194FD X-Spam-Score: -5.24 X-Migadu-Scanner: scn1.migadu.com X-TUID: iSR4l1i98Gvk > Date: Wed, 20 Apr 2022 11:19:29 -0700 > Cc: manikulin@gmail.com, emacs-orgmode@gnu.org, 54764@debbugs.gnu.org, > Gnulib bugs > From: Paul Eggert > > > Thanks, the test-gettime-res test says "gettime_res returned 625000 > > ns", which is a strange number: it doesn't fit any MS-Windows system > > time resolution figure I know about. Do you happen to know what does > > this number represent, and why it is the result of gettime-res.c when > > it runs on MS-Windows? > > It comes from current_timespec samples taken by gettime_res. Evidently > something is going wrong, either in gettime_res or in current_timespec. > > I stared at the code a bit and see one possible problem, which I fixed > by installing the attached patch into Gnulib. I then generated a new > test-gettime-res.tgz compressed tarball (also attached); could you give > it a try? > > This tarball is the result of running ./gnulib-tool as before, except I > added an extra print statement executed if you pass an extra argument to > that test program. So if you run the test and it's still outputting an > outlandish value for the resolution, please run the command: > > gltests/test-gettime-res x > > and let's take a look at its (long) debugging output. I get the same result, and moreover I see no differences between this and the previous tarball, and no printouts in test-gettime-res.c. Did you perhaps attach the wrong tarball this time? Thanks.