X-Loop: help-debbugs@HIDDEN Subject: bug#68000: 30.0.50; icalendar-import-file generates a wrong diary-block end date with both weekly and byday. Resent-From: TAKAHASHI Yoshio <yfb02119@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 24 Dec 2023 01:56:01 +0000 Resent-Message-ID: <handler.68000.B.170338291519945 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 68000 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 68000 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.170338291519945 (code B ref -1); Sun, 24 Dec 2023 01:56:01 +0000 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rHDhz-0005Bc-Ar for submit <at> 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 <yfb02119@HIDDEN>) id 1rHDhv-0005BL-JS for submit <at> 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 <yfb02119@HIDDEN>) id 1rHDhk-0005Jg-7H for bug-gnu-emacs@HIDDEN; 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 <yfb02119@HIDDEN>) id 1rHDhf-0004ii-3i for bug-gnu-emacs@HIDDEN; 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@HIDDEN> for <bug-gnu-emacs@HIDDEN>; 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@HIDDEN> for <bug-gnu-emacs@HIDDEN>; Sun, 24 Dec 2023 10:54:45 +0900 From: TAKAHASHI Yoshio <yfb02119@HIDDEN> Date: Sun, 24 Dec 2023 10:54:44 +0900 Message-ID: <87il4ogyaj.fsf@HIDDEN> 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@HIDDEN; 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-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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:$B$"$$$&$($*(B 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 $B$"$$$&$($*(B --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 <yfb02119@HIDDEN>
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: TAKAHASHI Yoshio <yfb02119@HIDDEN> Subject: bug#68000: Acknowledgement (30.0.50; icalendar-import-file generates a wrong diary-block end date with both weekly and byday.) Message-ID: <handler.68000.B.170338291519945.ack <at> debbugs.gnu.org> References: <87il4ogyaj.fsf@HIDDEN> X-Gnu-PR-Message: ack 68000 X-Gnu-PR-Package: emacs Reply-To: 68000 <at> debbugs.gnu.org Date: Sun, 24 Dec 2023 01:56:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 68000 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 68000: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68000 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.