GNU bug report logs - #68000
30.0.50; icalendar-import-file generates a wrong diary-block end date with both weekly and byday.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: TAKAHASHI Yoshio <yfb02119@HIDDEN>; dated Sun, 24 Dec 2023 01:56:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Dec 2023 01:55:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 23 20:55:15 2023
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>
To: bug-gnu-emacs@HIDDEN
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@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-Debbugs-Envelope-To: submit
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>




Acknowledgement sent to TAKAHASHI Yoshio <yfb02119@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#68000; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.