From unknown Fri Jun 20 07:10:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68000 <68000@debbugs.gnu.org> To: bug#68000 <68000@debbugs.gnu.org> Subject: Status: 30.0.50; icalendar-import-file generates a wrong diary-block end date with both weekly and byday. Reply-To: bug#68000 <68000@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:10:06 +0000 retitle 68000 30.0.50; icalendar-import-file generates a wrong diary-block = end date with both weekly and byday. reassign 68000 emacs submitter 68000 TAKAHASHI Yoshio severity 68000 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 23 20:55:15 2023 Received: (at submit) by debbugs.gnu.org; 24 Dec 2023 01:55:15 +0000 Received: from localhost ([127.0.0.1]:51530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHDhz-0005Bc-Ar for submit@debbugs.gnu.org; Sat, 23 Dec 2023 20:55:15 -0500 Received: from lists.gnu.org ([2001:470:142::17]:48896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHDhv-0005BL-JS for submit@debbugs.gnu.org; Sat, 23 Dec 2023 20:55:14 -0500 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 1rHDhk-0005Jg-7H for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 20:55:00 -0500 Received: from mta-snd01102.nifty.com ([106.153.228.34] helo=osmta1018.nifty.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rHDhf-0004ii-3i for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 20:54:58 -0500 Received: from dmta1018.nifty.com by osmta1018.nifty.com with ESMTP id <20231224015445308.BCXE.62294.dmta1018.nifty.com@nifty.com> for ; Sun, 24 Dec 2023 10:54:45 +0900 Received: from LAPTOP-89LTAUNV.yfb02119.nifty.com by dmta1018.nifty.com with ESMTP id <20231224015445222.IJJO.56393.LAPTOP-89LTAUNV.yfb02119.nifty.com@nifty.com> for ; Sun, 24 Dec 2023 10:54:45 +0900 From: TAKAHASHI Yoshio To: bug-gnu-emacs@gnu.org Subject: 30.0.50; icalendar-import-file generates a wrong diary-block end date with both weekly and byday. X-Debbugs-Cc: Date: Sun, 24 Dec 2023 10:54:44 +0900 Message-ID: <87il4ogyaj.fsf@yfb02119.nifty.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Received-SPF: pass client-ip=106.153.228.34; envelope-from=yfb02119@nifty.com; helo=osmta1018.nifty.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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.0 (+) X-Debbugs-Envelope-To: submit 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: -0.0 (/) Hi, icalendar-import-file generates a wrong diary-block end date when an input ics has both WEEKLY and BYDAY. It counts 7 days per COUNT even if BYDAY is specified. Please see included "in.ics" and "out.diary" that I use to check: (icalendar-import-file "in.ics" "out.diary") diary-block with COUNT=2 starts from 2023-09-28 Thursday should be (diary-block 9 28 2023 9 29 2023) insetad of (diary-block 9 28 2023 10 12 2023) . in.ics --8<---------------cut here---------------start------------->8--- BEGIN:VCALENDAR PRODID:-//Microsoft Corporation//Outlook 16.0 MIMEDIR//EN VERSION:2.0 METHOD:PUBLISH BEGIN:VTIMEZONE TZID:Tokyo Standard Time BEGIN:STANDARD DTSTART:16010101T000000 TZOFFSETFROM:+0900 TZOFFSETTO:+0900 END:STANDARD END:VTIMEZONE BEGIN:VEVENT CLASS:PUBLIC DTEND;TZID="Tokyo Standard Time":20230928T080000 DTSTAMP:20230927T223304Z DTSTART;TZID="Tokyo Standard Time":20230928T073000 RRULE:FREQ=WEEKLY;COUNT=2;BYDAY=MO,TU,WE,TH,FR SEQUENCE:0 SUMMARY;LANGUAGE=ja:あいうえお TRANSP:OPAQUE UID:040000008200E00074C5B7101A82E00800000000A0B94EC51984D901000000000000000 0100000007D56C1DF9E90BA42AE840AB94F4F4D64 END:VEVENT END:VCALENDAR --8<---------------cut here---------------end--------------->8--- out.diary --8<---------------cut here---------------start------------->8--- %%(and (memq (calendar-day-of-week date) '(1 2 3 4 5)) (diary-block 9 28 2023 10 12 2023)) 07:30-08:00 あいうえお --8<---------------cut here---------------end--------------->8--- In GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-12-23 built on LAPTOP-89LTAUNV Repository revision: 1be62044732df0c4f1be9679a4ada09850a9e2ab Repository branch: HEAD Windowing system distributor 'Microsoft Corporation', version 11.0.12010000 System Description: Ubuntu 22.04.3 LTS -- TAKAHASHI Yoshio