From unknown Sun Jun 22 06:25:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69894: 29.1; Icalendar export conflict with calendar iso date Resent-From: RwN Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Mar 2024 04:06:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 69894@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171082111826267 (code B ref -1); Tue, 19 Mar 2024 04:06:04 +0000 Received: (at submit) by debbugs.gnu.org; 19 Mar 2024 04:05:18 +0000 Received: from localhost ([127.0.0.1]:36021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmQiy-0006pQ-32 for submit@debbugs.gnu.org; Tue, 19 Mar 2024 00:05:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:57612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmOje-000699-Oh for submit@debbugs.gnu.org; Mon, 18 Mar 2024 21:57:51 -0400 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 1rmOiw-0005Mf-VZ for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 21:57:08 -0400 Received: from msg-2.mailo.com ([213.182.54.12] helo=mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmOit-0002a0-KO for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 21:57:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1710813417; bh=35qESpBlsxxY/Kstos891ztbvF6IBnyHVKLkwk5ukEc=; h=X-EA-Auth:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding; b=ShlQw+pVFGtBBTS9a58YcZXz5ly4tam/LWt7vZrn2q+fMK7AVNsR9e0OhZfZd+N2C ymdEx6Q0S4WXgrSOOqQCQmv1MA4Z3M+SpjRrzFCWLzmTK4to4C0lTP5xCdHxltPvSc Yo/nNB4VWzTSmbrr5zNI/6jbSLRew+5peQV03IiQ= Received: by b221-6.in.mailobj.net [192.168.90.26] with ESMTP via ip-20.mailobj.net [213.182.54.20] Tue, 19 Mar 2024 02:56:57 +0100 (CET) X-EA-Auth: jtTslVM0ZCtXt8VAjmz46D+52zfUwip4WNGMjnAj6MvDb5c+HNEAm51vLGkwQ8Mvqpw6HBck+kMHBzh8CLGDpGwqGCfOdEnTzpNHCiA4Z7o= From: RwN Date: Tue, 19 Mar 2024 02:56:57 +0100 Message-ID: <86ttl3rnkm.fsf@mailo.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=213.182.54.12; envelope-from=rwn@mailo.com; helo=mailo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Tue, 19 Mar 2024 00:05:11 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Dear All, In a diary file, with a simple entry entry "2024-03-19 10:00 Appointment", = icalendar-export-file process to an error: "Could not parse date". The entr= y is provided by the default value of calendar-iso-date-display-form. I solve the problem with the following patch mathchin '-' has a separator i= n the function icalendar--datestring-to-isodate : diff -u --label /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz -= -label /tmp/icalendar.el /tmp/jka-commHr8dl /tmp/icalendar.el --- /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz +++ /tmp/icalendar.el @@ -894,8 +894,8 @@ (save-match-data (cond ( ;; iso-style numeric date (string-match (concat "\\s-*" - "\\([0-9]\\{4\\}\\)[ \t/]\\s-*" - "0?\\([1-9][0-9]?\\)[ \t/]\\s-*" + "\\([0-9]\\{4\\}\\)[ \t/-]\\s-*" + "0?\\([1-9][0-9]?\\)[ \t/-]\\s-*" "0?\\([1-9][0-9]?\\)") datestring) (setq year (read (substring datestring (match-beginning 1) Diff finished. Tue Mar 19 02:40:06 2024 Is it a correct solution to proposed?=20 RwN. In GNU Emacs 29.1 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cair= o version 1.16.0) of 2023-10-16 built on laptop Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Ubuntu 22.04.4 LTS Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSO= N LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIF= Y PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE = XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: marginalia-mode: t vertico-mode: t recentf-mode: t savehist-mode: t minibuffer-electric-default-mode: t minibuffer-depth-indicate-mode: t windmove-mode: t delete-selection-mode: t server-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/erwan/.emacs.d/etc/custom hides /usr/local/share/emacs/29.1/lisp/cust= om Features: (shadow sort flycheck-grammalecte grammalecte flycheck flyspell ispell mail= -extr emacsbug vertico-directory cl-extra help-mode orderless cursor-sensor= display-line-numbers display-fill-column-indicator rwn-emacs-completion ma= rginalia vertico compat recentf tree-widget savehist minibuf-eldef mb-depth= rwn-emacs-diary mc tempo-api request french-holidays holidays holiday-load= defs appt diary-lib diary-loaddefs solar cal-dst rwn-emacs-windows rwn-emac= s-spelling rwn-emacs-vc rwn-emacs-dired dired-preview rwn-emacs-latex rwn-e= macs-pdf pdf-loader rwn-emacs-mail rwn-mail mu4e mu4e-org org ob ob-tangle = ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pco= mplete org-list org-footnote org-faces org-entities noutline outline icons = ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-c= ore org-keys oc org-loaddefs find-func org-version org-compat org-macs form= at-spec mu4e-notification notifications mu4e-main smtpmail mu4e-view pcase = mu4e-mime-parts thingatpt comint ansi-osc ansi-color ring gnus-art mm-uu mm= l2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus= -start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-= time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus wid-edit cal-menu = calendar cal-loaddefs mu4e-headers mu4e-thread mu4e-actions mu4e-compose nn= header range mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message s= hr pixel-fill kinsoku url-file svg xml dom flow-fill mule-util hl-line mu4e= -contacts mu4e-update mu4e-folders mu4e-context mu4e-query-items mu4e-serve= r mu4e-modeline mu4e-vars mu4e-helpers mu4e-config mu4e-window bookmark pp = ido message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-se= c epa derived epg rfc6068 epg-config gnus-util text-property-search time-da= te mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util= ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader mu4e-obso= lete rwn-emacs-themes standard-dark-theme standard-themes rwn-emacs-package= s finder-inf auctex-autoloads tex-site biblio-autoloads biblio-core-autoloa= ds citar-embark-autoloads citar-autoloads citeproc-autoloads consult-autolo= ads dired-preview-autoloads embark-autoloads f-autoloads dash-autoloads fly= check-grammalecte-autoloads flycheck-autoloads marginalia-autoloads message= s-are-flowing-autoloads orderless-autoloads parsebib-autoloads pdf-tools-au= toloads pkg-info-autoloads epl-autoloads queue-autoloads request-autoloads = s-autoloads standard-themes-autoloads string-inflection-autoloads sudo-edit= -autoloads tablist-autoloads vertico-autoloads info compat-autoloads packag= e browse-url url url-proxy url-privacy url-expand url-methods url-history u= rl-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-p= arse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x= map byte-opt gv bytecomp byte-compile url-vars rwn-emacs-essentials windmo= ve delsel rwn-common cl-loaddefs cl-lib server rmc iso-transl tooltip cconv= eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mo= de mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image= regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode pr= og-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer s= elect scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors = frame minibuffer nadvice seq simple cl-generic indonesian philippine cham g= eorgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean ja= panese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopi= c indian cyrillic chinese composite emoji-zwj charscript charprop case-tabl= e epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button l= oaddefs theme-loaddefs faces cus-face macroexp files window text-properties= overlay sha1 md5 base64 format env code-pages mule custom widget keymap ha= shtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-set= ting system-font-setting font-render-setting cairo move-toolbar gtk x-toolk= it xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 468357 33831) (symbols 48 30514 4) (strings 32 153392 6568) (string-bytes 1 4223999) (vectors 16 50001) (vector-slots 8 578847 29215) (floats 8 615 116) (intervals 56 357 175) (buffers 976 11)) From unknown Sun Jun 22 06:25:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69894: 29.1; Icalendar export conflict with calendar iso date Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2024 09:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: RwN , Paul Eggert Cc: 69894@debbugs.gnu.org Received: via spool by 69894-submit@debbugs.gnu.org id=B69894.171161962420411 (code B ref 69894); Thu, 28 Mar 2024 09:54:02 +0000 Received: (at 69894) by debbugs.gnu.org; 28 Mar 2024 09:53:44 +0000 Received: from localhost ([127.0.0.1]:39115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpmS8-0005J9-FV for submit@debbugs.gnu.org; Thu, 28 Mar 2024 05:53:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpmS6-0005Il-Nt for 69894@debbugs.gnu.org; Thu, 28 Mar 2024 05:53:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpmRz-0001vo-9D; Thu, 28 Mar 2024 05:53:35 -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=Qz9mQFj/kY7Z378EZjhbyXbV2FW4hRpLgrY4cXbnjzI=; b=JPMnq1RSRiMK nGRLM6nLveHaGZDp9ai3FxiZ2oLSZbnPomGTglRlc9D0Y3Ed0pt9iDSpoEiDQhpNjQAC61TkWpPlB 2zU6jCHS9Fm7zVEzgcTlw1W8xuFU/nAoI71QG8oIIK3deYtZ17rooM2ZnEb+W1Ssf5JnOF/0I6SNY W3j3mf1hX9N7R2C0C9K7rTa0Rt+2nQv2dHHvK95244P/vZTM2jI4mlU2QdKL6A4aP4PGgz0detjrd H0MKfYiQ0MOXmKzrAhS40VupTidr5hP+VjyFNo+h+qCaZBXycTJBT97774GXK6i0MKMy30t1gE7ve SHzF2xnVdZsOUfOcByGIoQ==; Date: Thu, 28 Mar 2024 11:53:31 +0200 Message-Id: <86edbuheck.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <86ttl3rnkm.fsf@mailo.com> (bug-gnu-emacs@gnu.org) References: <86ttl3rnkm.fsf@mailo.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 19 Mar 2024 02:56:57 +0100 > From: RwN via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > Dear All, > > In a diary file, with a simple entry entry "2024-03-19 10:00 Appointment", icalendar-export-file process to an error: "Could not parse date". The entry is provided by the default value of calendar-iso-date-display-form. > > I solve the problem with the following patch mathchin '-' has a separator in the function icalendar--datestring-to-isodate : > > diff -u --label /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz --label /tmp/icalendar.el /tmp/jka-commHr8dl /tmp/icalendar.el > --- /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz > +++ /tmp/icalendar.el > @@ -894,8 +894,8 @@ > (save-match-data > (cond ( ;; iso-style numeric date > (string-match (concat "\\s-*" > - "\\([0-9]\\{4\\}\\)[ \t/]\\s-*" > - "0?\\([1-9][0-9]?\\)[ \t/]\\s-*" > + "\\([0-9]\\{4\\}\\)[ \t/-]\\s-*" > + "0?\\([1-9][0-9]?\\)[ \t/-]\\s-*" > "0?\\([1-9][0-9]?\\)") > datestring) > (setq year (read (substring datestring (match-beginning 1) > > Diff finished. Tue Mar 19 02:40:06 2024 > > Is it a correct solution to proposed? Paul, WDYT about the proposed change? From unknown Sun Jun 22 06:25:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69894: 29.1; Icalendar export conflict with calendar iso date Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2024 21:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , RwN Cc: 69894@debbugs.gnu.org Received: via spool by 69894-submit@debbugs.gnu.org id=B69894.171166121027719 (code B ref 69894); Thu, 28 Mar 2024 21:27:02 +0000 Received: (at 69894) by debbugs.gnu.org; 28 Mar 2024 21:26:50 +0000 Received: from localhost ([127.0.0.1]:41263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpxGr-0007D1-T1 for submit@debbugs.gnu.org; Thu, 28 Mar 2024 17:26:50 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:35414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpxGn-0007Cm-R8 for 69894@debbugs.gnu.org; Thu, 28 Mar 2024 17:26:48 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 1ABFE3C00E40C; Thu, 28 Mar 2024 14:26:39 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id K3up7Hau8Bnc; Thu, 28 Mar 2024 14:26:38 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id C6A463C00E40D; Thu, 28 Mar 2024 14:26:38 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu C6A463C00E40D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1711661198; bh=Mxtit6aJMjuce+d3dDrh1aLfqx6hx7wSsy6AFLxjngI=; h=Message-ID:Date:MIME-Version:To:From; b=n/N3X/XwOaLSXnclDSnZeT3IaKrfu8wjIFEcoj8frI77dt1t6e/fjTaPLIICc4FQq Zs/wj1qCmoGc+4w5w8v9648WjHbVT1Uzr0DJnMvmmWN9rJrFIej2ZFFmz/LfaXywoe vX5dsusKBzSPKsYwhi99oHBIYhiqDIWctddZ4LCZ6rvo8y1OG1japnW5qUZtet5I2j 2DB+EhtEI5sy5eUdFKmahb1nx7ZjsL9xlk/WQvU0KpvZ7Rlr9NCzgxqi5gLtkBMkX3 FLjIiXkAv/Sn51VpduBNBWhTZn+EYCaqZAV1viYPuEkp8z7y6uJpqCzDqOQn3l+ypO c3CFnZnhPrWzA== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id 3LRjSwL7XUKJ; Thu, 28 Mar 2024 14:26:38 -0700 (PDT) Received: from [10.0.0.57] (c-98-245-1-133.hsd1.co.comcast.net [98.245.1.133]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 7D1B63C00E40C; Thu, 28 Mar 2024 14:26:38 -0700 (PDT) Message-ID: <6ce76357-6c44-4cba-8094-703cbbf3d10c@cs.ucla.edu> Date: Thu, 28 Mar 2024 15:26:38 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <86ttl3rnkm.fsf@mailo.com> <86edbuheck.fsf@gnu.org> Content-Language: en-US From: Paul Eggert In-Reply-To: <86edbuheck.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 3/28/24 03:53, Eli Zaretskii wrote: >> diff -u --label /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz --label /tmp/icalendar.el /tmp/jka-commHr8dl /tmp/icalendar.el >> --- /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz >> +++ /tmp/icalendar.el >> @@ -894,8 +894,8 @@ >> (save-match-data >> (cond ( ;; iso-style numeric date >> (string-match (concat "\\s-*" >> - "\\([0-9]\\{4\\}\\)[ \t/]\\s-*" >> - "0?\\([1-9][0-9]?\\)[ \t/]\\s-*" >> + "\\([0-9]\\{4\\}\\)[ \t/-]\\s-*" >> + "0?\\([1-9][0-9]?\\)[ \t/-]\\s-*" >> "0?\\([1-9][0-9]?\\)") >> datestring) >> (setq year (read (substring datestring (match-beginning 1) >> >> Diff finished. Tue Mar 19 02:40:06 2024 >> >> Is it a correct solution to proposed? > Paul, WDYT about the proposed change? I'm no expert on diary files. Certainly the "-" is ISO format (space and tab are not). By the way, those two instances of 0?\\([1-9][0-9]?\\) both look bogus to me, as they match strings like 099 that are implausible month or day-of-month numbers. From unknown Sun Jun 22 06:25:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69894: 29.1; Icalendar export conflict with calendar iso date Resent-From: Erwan Hingant Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Mar 2024 04:08:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert Cc: RwN , Eli Zaretskii , 69894@debbugs.gnu.org Received: via spool by 69894-submit@debbugs.gnu.org id=B69894.1711685258931 (code B ref 69894); Fri, 29 Mar 2024 04:08:05 +0000 Received: (at 69894) by debbugs.gnu.org; 29 Mar 2024 04:07:38 +0000 Received: from localhost ([127.0.0.1]:41389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rq3Wj-0000Eq-4J for submit@debbugs.gnu.org; Fri, 29 Mar 2024 00:07:38 -0400 Received: from msg-4.mailo.com ([213.182.54.15]:43982 helo=mailo.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpxcz-0000RJ-4B for 69894@debbugs.gnu.org; Thu, 28 Mar 2024 17:49:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1711662573; bh=AKLD7cYkYlu3JBf5uxs2Xjgkj295+YrakdB6PJ8qCeo=; h=X-EA-Auth:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type; b=SmypCxbYGq4LhxaMzl599RC1kqILvAQZTbax0r1n1jOZToHdrhVJozeWdwppgJcta j1y5ZRl/7oIhny8BbpH12omThHaB0TK7JZ9xemSy35sYwE+xygt6ZdURzed2BkzQnY 0ZLsodV+vilCU5g9YSTEQUnG54Z/AI5qoMeyDeA0= Received: by b221-6.in.mailobj.net [192.168.90.26] with ESMTP via ip-20.mailobj.net [213.182.54.20] Thu, 28 Mar 2024 22:49:33 +0100 (CET) X-EA-Auth: YovxLysyy+43fGvY6Vf5W6vebuNWMOXZU/WDpBwb27PPIpZzfGcwNzY+SWajeOhZsuUWqyRTdvWzaUY/Rr+oCWd9zluQcdI8EOq6VLQB4m0= From: Erwan Hingant In-Reply-To: <6ce76357-6c44-4cba-8094-703cbbf3d10c@cs.ucla.edu> (Paul Eggert's message of "Thu, 28 Mar 2024 15:26:38 -0600") References: <86ttl3rnkm.fsf@mailo.com> <86edbuheck.fsf@gnu.org> <6ce76357-6c44-4cba-8094-703cbbf3d10c@cs.ucla.edu> User-Agent: mu4e 1.12.1; emacs 29.1 Date: Thu, 28 Mar 2024 22:49:33 +0100 Message-ID: <86r0fu2fiq.fsf@mailo.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Fri, 29 Mar 2024 00:07:26 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Sorry I cannot help much because I am not an expert in regexp.... I just find a patch which work for me. The 0? is not in the match, the function assume a good structure of the diary file so 2024 099 03 will match 2024 99 3 if I am right? What I am concern is considering - instead of space likewise the default ISO format used . E. Paul Eggert writes: > On 3/28/24 03:53, Eli Zaretskii wrote: >>> diff -u --label >>> /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz >>> --label /tmp/icalendar.el /tmp/jka-commHr8dl /tmp/icalendar.el >>> --- /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz >>> +++ /tmp/icalendar.el >>> @@ -894,8 +894,8 @@ >>> (save-match-data >>> (cond ( ;; iso-style numeric date >>> (string-match (concat "\\s-*" >>> - "\\([0-9]\\{4\\}\\)[ >>> \t/]\\s-*" >>> - "0?\\([1-9][0-9]?\\)[ >>> \t/]\\s-*" >>> + "\\([0-9]\\{4\\}\\)[ >>> \t/-]\\s-*" >>> + "0?\\([1-9][0-9]?\\)[ >>> \t/-]\\s-*" >>> "0?\\([1-9][0-9]?\\)") >>> datestring) >>> (setq year (read (substring datestring >>> (match-beginning 1) >>> >>> Diff finished. Tue Mar 19 02:40:06 2024 >>> >>> Is it a correct solution to proposed? >> Paul, WDYT about the proposed change? > > I'm no expert on diary files. Certainly the "-" is ISO format > (space and tab are not). > > By the way, those two instances of 0?\\([1-9][0-9]?\\) both look > bogus to me, as they > match strings like 099 that are implausible month or > day-of-month numbers. From unknown Sun Jun 22 06:25:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69894: 29.1; Icalendar export conflict with calendar iso date Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Apr 2024 10:00:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Erwan Hingant , Ulf Jasper Cc: rwn@mailo.com, eggert@cs.ucla.edu, 69894@debbugs.gnu.org Received: via spool by 69894-submit@debbugs.gnu.org id=B69894.17123975693262 (code B ref 69894); Sat, 06 Apr 2024 10:00:05 +0000 Received: (at 69894) by debbugs.gnu.org; 6 Apr 2024 09:59:29 +0000 Received: from localhost ([127.0.0.1]:38327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rt2pO-0000pd-LN for submit@debbugs.gnu.org; Sat, 06 Apr 2024 05:59:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rt2pK-0000oi-8t for 69894@debbugs.gnu.org; Sat, 06 Apr 2024 05:59:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rt2p7-00082a-Be; Sat, 06 Apr 2024 05:58:57 -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=CpsGUSSBUNSBL49sG/gBkpMzGrnCfrXFQvMogVnZLyc=; b=oAcCOoB637Li tZWunFAVqg09cawuYzBzIm/jiV75f+UVoApJ9Ql4FtsS2Jvi3nJ8Ez8mF/ajG7LxZVP8f0BGIzKtJ ErgZVwNBzh05RNa81VaFxvIDb1jAiKK9f+C2vN0+bQ8DhBWp2bQoRcT/s6kdG396PQkca5rlG7Chc VMSLDYFa8NxfQNAqZTICjPRF7gTdWzYr9HDOSIRJaaaFZMlXhtPWEKJzi9aOzpB7HYlbwFEPxtRCu wgM9BSgKwSEwSJLRk8nmcqacEg2V/ndA6eMQYTS6iM2om8RALoPQo1Xj8aWP3+qLUArobK8qxDm1U V2evn1YH7sOYqtuWWm+C/Q==; Date: Sat, 06 Apr 2024 12:58:54 +0300 Message-Id: <86ttke3j8h.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <86r0fu2fiq.fsf@mailo.com> (message from Erwan Hingant on Thu, 28 Mar 2024 22:49:33 +0100) References: <86ttl3rnkm.fsf@mailo.com> <86edbuheck.fsf@gnu.org> <6ce76357-6c44-4cba-8094-703cbbf3d10c@cs.ucla.edu> <86r0fu2fiq.fsf@mailo.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Erwan Hingant > Cc: Eli Zaretskii , RwN , > 69894@debbugs.gnu.org > Date: Thu, 28 Mar 2024 22:49:33 +0100 > > Sorry I cannot help much because I am not an expert in > regexp.... I just find a patch which work for me. The 0? is not in > the match, the function assume a good structure of the diary file > so 2024 099 03 will match 2024 99 3 if I am right? What I am > concern is considering - instead of space likewise the default ISO > format used . Can you tell how you arrived at a date such as "2024-03-19" in the diary file? Did you per chance write it by hand or something? If any of the diary commands produce such dates, can you show a recipe for reproducing this? AFAIU, what icalendar--datestring-to-isodate accepts as DATESTRING is a diary-style date, and the ISO format of diary-style dates doesn't allow dashes. So I 'm curious as to how those dashes ended up in your diary file. Ulf, any comments about this? From unknown Sun Jun 22 06:25:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69894: 29.1; Icalendar export conflict with calendar iso date Resent-From: Erwan Hingant Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Apr 2024 17:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Ulf Jasper , rwn@mailo.com, eggert@cs.ucla.edu, 69894@debbugs.gnu.org Received: via spool by 69894-submit@debbugs.gnu.org id=B69894.17124233753692 (code B ref 69894); Sat, 06 Apr 2024 17:10:03 +0000 Received: (at 69894) by debbugs.gnu.org; 6 Apr 2024 17:09:35 +0000 Received: from localhost ([127.0.0.1]:40881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rt9Xn-0000wx-JM for submit@debbugs.gnu.org; Sat, 06 Apr 2024 13:09:34 -0400 Received: from msg-2.mailo.com ([213.182.54.12]:33536 helo=mailo.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rt3Np-0006hn-BF for 69894@debbugs.gnu.org; Sat, 06 Apr 2024 06:34:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1712399676; bh=qliFqo/hPbper7FsUiZSKm7NkPCkzqS6zgt2Fro6WKA=; h=X-EA-Auth:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type; b=MiQvGKKPMvb3osm2zRTrvXRh+kqFMxQ9MWQmyALEWJMxLT7o9r+aR4c4+TOpzlCQD zj14u167TgTy+IhKjwWSqMdFUpCk3/yxF4mFa6/asqmAN/2CErfMnjuVjavDrEAjbs Uz7l6GFVQ7Wpk+r/j6Wtdpnw9z45Gv896AjhGV5E= Received: by b221-1.in.mailobj.net [192.168.90.21] with ESMTP via ip-20.mailobj.net [213.182.54.20] Sat, 6 Apr 2024 12:34:36 +0200 (CEST) X-EA-Auth: EamZQyFRNeT5gW5s62xeA4l2cUMN+w26dGtKvGaN787benT7SJnCk90BzpmwmWa8ns8oVYei1Cmso3SEXJgePvnMStEdlLg9fqv82TroO8U= From: Erwan Hingant In-Reply-To: <86ttke3j8h.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Apr 2024 12:58:54 +0300") References: <86ttl3rnkm.fsf@mailo.com> <86edbuheck.fsf@gnu.org> <6ce76357-6c44-4cba-8094-703cbbf3d10c@cs.ucla.edu> <86r0fu2fiq.fsf@mailo.com> <86ttke3j8h.fsf@gnu.org> User-Agent: mu4e 1.12.1; emacs 29.1 Date: Sat, 06 Apr 2024 12:34:34 +0200 Message-ID: <86y19qlqyt.fsf@mailo.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Sat, 06 Apr 2024 13:09:26 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, This is the ISO format has a '-'. Proceed with : (setq diary-file "whatever" calendar-date-display-form calendar-iso-date-display-form) Then, go to calendar and use "i d" on any date or (diary-insert-entry) you will see the date inserted in the form YYYY-MM-DD. Indeed, diary-insert-entry call the calendar-insert-date-string which use the format stroed in calendar-date-display-form. You may inspect the default proposed value of calendar-iso-date-display-form. Sincerely, E. Eli Zaretskii writes: >> From: Erwan Hingant >> Cc: Eli Zaretskii , RwN , >> 69894@debbugs.gnu.org >> Date: Thu, 28 Mar 2024 22:49:33 +0100 >> >> Sorry I cannot help much because I am not an expert in >> regexp.... I just find a patch which work for me. The 0? is not >> in >> the match, the function assume a good structure of the diary >> file >> so 2024 099 03 will match 2024 99 3 if I am right? What I am >> concern is considering - instead of space likewise the default >> ISO >> format used . > > Can you tell how you arrived at a date such as "2024-03-19" in > the > diary file? Did you per chance write it by hand or something? > If any > of the diary commands produce such dates, can you show a recipe > for > reproducing this? > > AFAIU, what icalendar--datestring-to-isodate accepts as > DATESTRING is > a diary-style date, and the ISO format of diary-style dates > doesn't > allow dashes. So I 'm curious as to how those dashes ended up > in your > diary file. > > Ulf, any comments about this? From unknown Sun Jun 22 06:25:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69894: 29.1; Icalendar export conflict with calendar iso date Resent-From: Ulf Jasper Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Apr 2024 05:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: rwn@mailo.com, eggert@cs.ucla.edu, 69894@debbugs.gnu.org, Erwan Hingant Received: via spool by 69894-submit@debbugs.gnu.org id=B69894.17125554891336 (code B ref 69894); Mon, 08 Apr 2024 05:52:03 +0000 Received: (at 69894) by debbugs.gnu.org; 8 Apr 2024 05:51:29 +0000 Received: from localhost ([127.0.0.1]:45103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rthug-0000LH-S0 for submit@debbugs.gnu.org; Mon, 08 Apr 2024 01:51:28 -0400 Received: from mout.web.de ([212.227.17.12]:52937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rthud-0000Ks-Dh for 69894@debbugs.gnu.org; Mon, 08 Apr 2024 01:51:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1712555453; x=1713160253; i=ulf.jasper@web.de; bh=GuydxqQ5E0+joMpoo//lfrUzvUaGeo/crBsmHSZQoCg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=q1B8Q5aTWdge5USeYSoNZJZ4z8uHIk3GMHqIsuD9MUX0/7lZNYZW6cUeKn3Ev+gm uXS+fJbC4Dh1ZmFG2ZKiDHfSgZMi8+Uoq9/BSjDeao5/duiQ44uko+b/NL6GNgMyu u+U6blqVvXMBAScT5E64WNAkKxByiXP78rZssrYJ3ue+ncYdF35WnGVIYVChoz1tp Ab/nBeQpYa/KCB6aGQLo8b8G4IHJexrGGjnWsd4kbZpilZBCESJJm0gognLXuN43H prCR2aaxPqCK6EjzYp9KIG4P3QRVqlL56Ghn9hYJbvGxw1jnQcCKYdSqkmWncvrKU E5YPcVElagktAgCv5w== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from arzi ([79.213.250.206]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1N6bCu-1srdrv1fck-018LQi; Mon, 08 Apr 2024 07:50:53 +0200 From: Ulf Jasper In-Reply-To: <86ttke3j8h.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Apr 2024 12:58:54 +0300") References: <86ttl3rnkm.fsf@mailo.com> <86edbuheck.fsf@gnu.org> <6ce76357-6c44-4cba-8094-703cbbf3d10c@cs.ucla.edu> <86r0fu2fiq.fsf@mailo.com> <86ttke3j8h.fsf@gnu.org> Date: Mon, 08 Apr 2024 07:50:48 +0200 Message-ID: <877ch8cshz.fsf@panama> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:DPQus/HPO5UvOThmaS7NWq8JhX9n/zS3POddz+PnQOsZTFhcyrd /0LfNevrxyHiNuJ0B5YabkoAxjE/KZ7NiJxx0yXmU7bk9lk9u4te8t1YIBRLhwg+hc55y1I VIkf8h/GDc90S+VnjMHP/equsUzqOtTta/IDq5TlaM8IU2RLmST6GltePxjZc0viQMMg2Fm hGoZb5hZGvT9TF+tj17FQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:bMl3aa6pZ0Q=;R9B3o0IkAAZuegqQSb7PPzttPX4 YV0JR5tw8use2nBJlc1gl46kwjP4WqoTG6InZrzTuwXACR2HgnxnMF8rijzGK9x4aMLDI+jTB 8QpXWsVjGu5b2ibATD3Evf8AovdoaK/hePtOjHpmZloagXy0h2aUgxL5wIjSxRQHxmx2Im+RX 8B1F1sKvRI6JZUj2WSt7vwIe0LHU8psc6DVQ8Iy+uHtL4FWniaAObiXln7gQCd8/MEQlfkuSR F6xFfid2cRioLY7YlNW6iZVXMN34YFIISK9YHHtNTTpknOjBJZ+qwdZzfySbbZrZo7F9yxLm9 NYGQM6mdJMr8Z2SZPW5qoPofZTWS8YNyKUjtZHYpHiX49d14La7jkdCsTONPqvewYQTM65FWl glpQFvdqkjzdGp3h1ity93yUtLP6U7IchyvQEkmQ7Vb7v+QjEqL8Nwgi1buGyD5eymrQe3y5/ k60kSoP6xWLeGTJJ4G2qm2eAn4lpLkQF7xB7SZNhkCbXOVAYPEHVh3E70+Fba3PZHGEHrPVCs n7tQq0nMwwFS4kQmdiL1HuaVR6RdCN++1y89FmwS8AYO7R24kKo0MdX62ndxTGkYdW+F+bfZN DM4mhtUOMvWl9w3wNdbodLvNkqgDu7jhPZMaspQYTCZaMVYKk9BvwKpYWntvJ1sLEzz491/Ko /pQ5Jf525+qVOE7B3JNB5sXQVjRRJIfqAtQ57q43o+27VXnY98czROZzOh3jPtP9EoDT18I0Y Na5rsAxxoHN041i5y3jA8g1rJ8Zsjqjm6Y33uFvVsIHhopy8P0XleLEAPhgzrN9wNlhjHKSRB ErrOEaTPbtITr6I6QxLu4J88xfC+24jbhUoKAzoMl71iU= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am 06.04.2024 um 12:58 (+0300) schrieb Eli Zaretskii: >> From: Erwan Hingant >> Cc: Eli Zaretskii , RwN , >> 69894@debbugs.gnu.org >> Date: Thu, 28 Mar 2024 22:49:33 +0100 >> >> Sorry I cannot help much because I am not an expert in >> regexp.... I just find a patch which work for me. The 0? is not in >> the match, the function assume a good structure of the diary file >> so 2024 099 03 will match 2024 99 3 if I am right? What I am >> concern is considering - instead of space likewise the default ISO >> format used . > > Can you tell how you arrived at a date such as "2024-03-19" in the > diary file? Did you per chance write it by hand or something? If any > of the diary commands produce such dates, can you show a recipe for > reproducing this? > > AFAIU, what icalendar--datestring-to-isodate accepts as DATESTRING is > a diary-style date, and the ISO format of diary-style dates doesn't > allow dashes. So I 'm curious as to how those dashes ended up in your > diary file. > > Ulf, any comments about this? 'icalendar--datestring-to-isodate' does not expect dashes in iso style input strings (as the observation/patch shows). However, if the diary machine accepts dashes then 'icalendar--datestring-to-isodate' should also do so. I would add some testcases to the ert test of 'icalendar--datestring-to-isodate' and then apply the patch. From unknown Sun Jun 22 06:25:50 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: RwN Subject: bug#69894: closed (Re: bug#69894: 29.1; Icalendar export conflict with calendar iso date) Message-ID: References: <86frvpr92z.fsf@gnu.org> <86ttl3rnkm.fsf@mailo.com> X-Gnu-PR-Message: they-closed 69894 X-Gnu-PR-Package: emacs Reply-To: 69894@debbugs.gnu.org Date: Sat, 13 Apr 2024 07:56:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1712994964-24447-1" This is a multi-part message in MIME format... ------------=_1712994964-24447-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #69894: 29.1; Icalendar export conflict with calendar iso date which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 69894@debbugs.gnu.org. --=20 69894: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D69894 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1712994964-24447-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 69894-done) by debbugs.gnu.org; 13 Apr 2024 07:55:09 +0000 Received: from localhost ([127.0.0.1]:60028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvYE6-0006Dt-Pa for submit@debbugs.gnu.org; Sat, 13 Apr 2024 03:55:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvYE4-0006C4-HG for 69894-done@debbugs.gnu.org; Sat, 13 Apr 2024 03:55:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvYDm-0005RZ-B2; Sat, 13 Apr 2024 03:54:47 -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=OlRliiEySqSj7Px4fa1Q9gKp6lnve27XYE8IpkTpxHg=; b=AOHH1YatB2+2 P7G/2lbrVqYuD/rtIXDAt5sCRt6RffvgGWcoYlbiM3xcRNDFJ/kkR6F2zoFgNtypeGDont0tuo0x8 c+4WZ4H3PguX57IsYwt7Ai4T+5o+CoDe229ywzlObM0q+hgo8s9r1ldqJ9JFf+76NMtm7h0ejda4U gpA9Ju5YC+BPGo7tPupqo0Ot74MJsN0Te3PC0GeN15WXBoPQ5GkFvruoLAhujT3XFUgcCsW3ZEeJH GTW146NLJM0uvI4DknV6arY7Nt72lMxEJcJ7MPApoajFF3z5d/lenbVQ1wKNMHTALh4hrAIZx78fK b3aJfqq8tmN22YdIoyQEMA==; Date: Sat, 13 Apr 2024 10:54:44 +0300 Message-Id: <86frvpr92z.fsf@gnu.org> From: Eli Zaretskii To: Ulf Jasper In-Reply-To: <877ch8cshz.fsf@panama> (message from Ulf Jasper on Mon, 08 Apr 2024 07:50:48 +0200) Subject: Re: bug#69894: 29.1; Icalendar export conflict with calendar iso date References: <86ttl3rnkm.fsf@mailo.com> <86edbuheck.fsf@gnu.org> <6ce76357-6c44-4cba-8094-703cbbf3d10c@cs.ucla.edu> <86r0fu2fiq.fsf@mailo.com> <86ttke3j8h.fsf@gnu.org> <877ch8cshz.fsf@panama> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69894-done Cc: rwn@mailo.com, eggert@cs.ucla.edu, erwan.hingant@mailo.com, 69894-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Ulf Jasper > Cc: Erwan Hingant , rwn@mailo.com, > eggert@cs.ucla.edu, 69894@debbugs.gnu.org > Date: Mon, 08 Apr 2024 07:50:48 +0200 > > Am 06.04.2024 um 12:58 (+0300) schrieb Eli Zaretskii: > > 'icalendar--datestring-to-isodate' does not expect dashes in iso style > input strings (as the observation/patch shows). However, if the diary > machine accepts dashes then 'icalendar--datestring-to-isodate' should > also do so. > > I would add some testcases to the ert test of > 'icalendar--datestring-to-isodate' and then apply the patch. Thanks, done on the master branch, and closing the bug. ------------=_1712994964-24447-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 Mar 2024 04:05:18 +0000 Received: from localhost ([127.0.0.1]:36021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmQiy-0006pQ-32 for submit@debbugs.gnu.org; Tue, 19 Mar 2024 00:05:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:57612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmOje-000699-Oh for submit@debbugs.gnu.org; Mon, 18 Mar 2024 21:57:51 -0400 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 1rmOiw-0005Mf-VZ for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 21:57:08 -0400 Received: from msg-2.mailo.com ([213.182.54.12] helo=mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmOit-0002a0-KO for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 21:57:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1710813417; bh=35qESpBlsxxY/Kstos891ztbvF6IBnyHVKLkwk5ukEc=; h=X-EA-Auth:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding; b=ShlQw+pVFGtBBTS9a58YcZXz5ly4tam/LWt7vZrn2q+fMK7AVNsR9e0OhZfZd+N2C ymdEx6Q0S4WXgrSOOqQCQmv1MA4Z3M+SpjRrzFCWLzmTK4to4C0lTP5xCdHxltPvSc Yo/nNB4VWzTSmbrr5zNI/6jbSLRew+5peQV03IiQ= Received: by b221-6.in.mailobj.net [192.168.90.26] with ESMTP via ip-20.mailobj.net [213.182.54.20] Tue, 19 Mar 2024 02:56:57 +0100 (CET) X-EA-Auth: jtTslVM0ZCtXt8VAjmz46D+52zfUwip4WNGMjnAj6MvDb5c+HNEAm51vLGkwQ8Mvqpw6HBck+kMHBzh8CLGDpGwqGCfOdEnTzpNHCiA4Z7o= From: RwN To: bug-gnu-emacs@gnu.org Subject: 29.1; Icalendar export conflict with calendar iso date Date: Tue, 19 Mar 2024 02:56:57 +0100 Message-ID: <86ttl3rnkm.fsf@mailo.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=213.182.54.12; envelope-from=rwn@mailo.com; helo=mailo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 19 Mar 2024 00:05:11 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Dear All, In a diary file, with a simple entry entry "2024-03-19 10:00 Appointment", = icalendar-export-file process to an error: "Could not parse date". The entr= y is provided by the default value of calendar-iso-date-display-form. I solve the problem with the following patch mathchin '-' has a separator i= n the function icalendar--datestring-to-isodate : diff -u --label /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz -= -label /tmp/icalendar.el /tmp/jka-commHr8dl /tmp/icalendar.el --- /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz +++ /tmp/icalendar.el @@ -894,8 +894,8 @@ (save-match-data (cond ( ;; iso-style numeric date (string-match (concat "\\s-*" - "\\([0-9]\\{4\\}\\)[ \t/]\\s-*" - "0?\\([1-9][0-9]?\\)[ \t/]\\s-*" + "\\([0-9]\\{4\\}\\)[ \t/-]\\s-*" + "0?\\([1-9][0-9]?\\)[ \t/-]\\s-*" "0?\\([1-9][0-9]?\\)") datestring) (setq year (read (substring datestring (match-beginning 1) Diff finished. Tue Mar 19 02:40:06 2024 Is it a correct solution to proposed?=20 RwN. In GNU Emacs 29.1 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cair= o version 1.16.0) of 2023-10-16 built on laptop Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Ubuntu 22.04.4 LTS Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSO= N LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIF= Y PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE = XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: marginalia-mode: t vertico-mode: t recentf-mode: t savehist-mode: t minibuffer-electric-default-mode: t minibuffer-depth-indicate-mode: t windmove-mode: t delete-selection-mode: t server-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/erwan/.emacs.d/etc/custom hides /usr/local/share/emacs/29.1/lisp/cust= om Features: (shadow sort flycheck-grammalecte grammalecte flycheck flyspell ispell mail= -extr emacsbug vertico-directory cl-extra help-mode orderless cursor-sensor= display-line-numbers display-fill-column-indicator rwn-emacs-completion ma= rginalia vertico compat recentf tree-widget savehist minibuf-eldef mb-depth= rwn-emacs-diary mc tempo-api request french-holidays holidays holiday-load= defs appt diary-lib diary-loaddefs solar cal-dst rwn-emacs-windows rwn-emac= s-spelling rwn-emacs-vc rwn-emacs-dired dired-preview rwn-emacs-latex rwn-e= macs-pdf pdf-loader rwn-emacs-mail rwn-mail mu4e mu4e-org org ob ob-tangle = ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pco= mplete org-list org-footnote org-faces org-entities noutline outline icons = ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-c= ore org-keys oc org-loaddefs find-func org-version org-compat org-macs form= at-spec mu4e-notification notifications mu4e-main smtpmail mu4e-view pcase = mu4e-mime-parts thingatpt comint ansi-osc ansi-color ring gnus-art mm-uu mm= l2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus= -start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-= time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus wid-edit cal-menu = calendar cal-loaddefs mu4e-headers mu4e-thread mu4e-actions mu4e-compose nn= header range mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message s= hr pixel-fill kinsoku url-file svg xml dom flow-fill mule-util hl-line mu4e= -contacts mu4e-update mu4e-folders mu4e-context mu4e-query-items mu4e-serve= r mu4e-modeline mu4e-vars mu4e-helpers mu4e-config mu4e-window bookmark pp = ido message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-se= c epa derived epg rfc6068 epg-config gnus-util text-property-search time-da= te mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util= ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader mu4e-obso= lete rwn-emacs-themes standard-dark-theme standard-themes rwn-emacs-package= s finder-inf auctex-autoloads tex-site biblio-autoloads biblio-core-autoloa= ds citar-embark-autoloads citar-autoloads citeproc-autoloads consult-autolo= ads dired-preview-autoloads embark-autoloads f-autoloads dash-autoloads fly= check-grammalecte-autoloads flycheck-autoloads marginalia-autoloads message= s-are-flowing-autoloads orderless-autoloads parsebib-autoloads pdf-tools-au= toloads pkg-info-autoloads epl-autoloads queue-autoloads request-autoloads = s-autoloads standard-themes-autoloads string-inflection-autoloads sudo-edit= -autoloads tablist-autoloads vertico-autoloads info compat-autoloads packag= e browse-url url url-proxy url-privacy url-expand url-methods url-history u= rl-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-p= arse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x= map byte-opt gv bytecomp byte-compile url-vars rwn-emacs-essentials windmo= ve delsel rwn-common cl-loaddefs cl-lib server rmc iso-transl tooltip cconv= eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mo= de mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image= regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode pr= og-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer s= elect scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors = frame minibuffer nadvice seq simple cl-generic indonesian philippine cham g= eorgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean ja= panese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopi= c indian cyrillic chinese composite emoji-zwj charscript charprop case-tabl= e epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button l= oaddefs theme-loaddefs faces cus-face macroexp files window text-properties= overlay sha1 md5 base64 format env code-pages mule custom widget keymap ha= shtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-set= ting system-font-setting font-render-setting cairo move-toolbar gtk x-toolk= it xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 468357 33831) (symbols 48 30514 4) (strings 32 153392 6568) (string-bytes 1 4223999) (vectors 16 50001) (vector-slots 8 578847 29215) (floats 8 615 116) (intervals 56 357 175) (buffers 976 11)) ------------=_1712994964-24447-1--