From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulf Jasper via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69894: 29.1; Icalendar export conflict with calendar iso date Date: Mon, 08 Apr 2024 07:50:48 +0200 Message-ID: <877ch8cshz.fsf@panama> 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> Reply-To: Ulf Jasper Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8508"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: rwn@mailo.com, eggert@cs.ucla.edu, 69894@debbugs.gnu.org, Erwan Hingant To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 08 07:52:19 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 1rthvW-0001xv-QQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Apr 2024 07:52:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rthvC-0000yq-0e; Mon, 08 Apr 2024 01:51:58 -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 1rthvA-0000yh-Ek for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2024 01:51:56 -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 1rthvA-00038T-6E for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2024 01:51:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rthvH-0000OA-4Z for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2024 01:52:03 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 69894-submit@debbugs.gnu.org id=B69894.17125554891336 (code B ref 69894); Mon, 08 Apr 2024 05:52:03 +0000 Original-Received: (at 69894) by debbugs.gnu.org; 8 Apr 2024 05:51:29 +0000 Original-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 Original-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 Original-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 In-Reply-To: <86ttke3j8h.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Apr 2024 12:58:54 +0300") X-Provags-ID: V03:K1:DPQus/HPO5UvOThmaS7NWq8JhX9n/zS3POddz+PnQOsZTFhcyrd /0LfNevrxyHiNuJ0B5YabkoAxjE/KZ7NiJxx0yXmU7bk9lk9u4te8t1YIBRLhwg+hc55y1I VIkf8h/GDc90S+VnjMHP/equsUzqOtTta/IDq5TlaM8IU2RLmST6GltePxjZc0viQMMg2Fm hGoZb5hZGvT9TF+tj17FQ== 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 Na5rsAxxoHN041i5y3jA8g1rJ8Zsjqjm6Y33uFvVsIHhopy8P0XleLEAPhgzrN9wNlhjHKSR 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:282909 Archived-At: 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.