From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QJrPI4N92mM7HQEAbAwnHQ (envelope-from ) for ; Wed, 01 Feb 2023 15:56:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sJjoI4N92mNwIwEA9RJhRA (envelope-from ) for ; Wed, 01 Feb 2023 15:56:03 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3446F1CD7E for ; Wed, 1 Feb 2023 15:56:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNERt-0005RE-Hz; Wed, 01 Feb 2023 09:50:57 -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 1pNERn-0004qN-Fq for emacs-orgmode@gnu.org; Wed, 01 Feb 2023 09:50:54 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNERk-0006w3-Tu for emacs-orgmode@gnu.org; Wed, 01 Feb 2023 09:50:50 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 531A52407D4 for ; Wed, 1 Feb 2023 15:50:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1675263046; bh=RfJDwgzgQY3+0nxMQrhhx6k8gDzL8fV05KckTxlRgOE=; h=From:To:Cc:Subject:Date:From; b=A9eiDQAhMimkUwJm/njEmcKytybV5g1pZmgtA91bHztjtuxRRvI5lJYqlGJ9eMXSj e+lJ43Qtc7zFIuV17cwS6B6XC39dZKeqbE4XO2xBbjQKUYOk/fxMHoXn7lIDndLdC5 ZzEDfJwxgrasqFbCkMoXMhFrMUhMnA/H6HktgVq23x9wYkT9SiUW4Arv/aiC6BybbQ mSrBCLDX1Sb899/bA0kyPGx1GF8w6ddv4O+Kl7anezaq6earcmx2h3M3NPvFZQK4It 1fE1xOt4zp4R402qdiSgJcO8nc6E4G9BCglAXqGKg0PVppOWHUPV6q5YQZBphWHNxl b0C9WZP31E1WQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P6Pwy592jz6tnF; Wed, 1 Feb 2023 15:50:42 +0100 (CET) From: Ihor Radchenko To: "Stephen J. Eglen" Cc: emacs-orgmode@gnu.org, mail@nicolasgoaziou.fr Subject: Re: Bug report for ox-icalendar: newlines should be CRLF In-Reply-To: References: Date: Wed, 01 Feb 2023 14:51:17 +0000 Message-ID: <87ilgljv6i.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675263363; a=rsa-sha256; cv=none; b=u9U5K1JYX2KN5P/fSE3vJKYSzJW4foGpTgLBZkE91z6NGvXGw83aJvFhZ7wslrdpksIPcG vO6+EO5oRC2SsKFnNdYzwW9SoeQO1GgE5o9bNM/SZY5LwC4G5dLycNjWI3lh0laRgRHbt0 6uJyYXdWy2vl/FjXeuSskc+bH52djzyn4Y9NGgqL0rgLGUUXimjrNX6/ibbtakFT2nxlat COnRcwBMQFxEolAy3nDEFTTeZJ4igxOycvosNCNnNaheckes2FCqFCrcXHDirU/z6loJBi krUmRk46vcacJa3hTcKzqBmJI1ZZ2q7TZaI5NwfVGn6ddG807gJ3cxe3EQ60mg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=A9eiDQAh; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675263363; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HGa13aX0T/WvB0ou0z5HodSpIknGKebkgzkOoYZkLJA=; b=GDLVT/SOhq2iqIkcS9y89SOlVlrXOTiQTLa9qeyEZqIJarv3aFdxBYKvIr43agp4KRiwtv CUfQWNiwUHf0zD6wacmP5Czw+HLcrTMJj3SzrgiJvJrQjZVjRUIEIgHHE2KUUOcP/I015D AYWiT9eA2qhZOTboiwTnK4DYmB5eNDyqvLtJ3rzvTVIplOguTkIsc1zA8VJEzSunRLDaU/ 66/oATmRuM6hDF7XXDI3RP2xTjsj0AU2RmJkBBwifPb1Hw0uRE9hOMFjiwldeY0FVsr7or cmPijja8tYN/O1KTCCnmfZM/i0FJkBcMh6jVjY+H63Hn7LkYevyqTMGZTeryOQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=A9eiDQAh; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.54 X-Spam-Score: -4.54 X-Migadu-Queue-Id: 3446F1CD7E X-TUID: JEa/AWHtit5U "Stephen J. Eglen" writes: > The lines from BEGIN:VEVENT to CATEGORIES:test inclusive have CR (^M) as well > as LF (^J) as newline [in the text above, I've converted the ^M to *** > to see them eaer. Is that intended? Uploading the file to > https://icalendar.org/validator.html gives me the error > >> Lines not delimited by CRLF sequence near line # 1 >> Reference: RFC 5545 3.1. Content Lines > > Nicolas (cc'ed) has confirmed that it seems to be a problem. Before I > work slowly on a suggested patch, does anyone have an idea on the best > way forward? Is it possible to encode the file as "DOS" ,using > something like set-buffer-file-coding-system? SOme lines do however > have \r and \n see e.g. org-icalendar-fold-string which inserts both \r > and \n Sorry for the late reply. Do I understand correctly that all the ical lines must use \r\n? [1] If so, we can simply wrap the export output into `org-icalendar-fold-string' in `org-icalendar-template'. Does it make sense? [1] https://icalendar.org/iCalendar-RFC-5545/3-1-content-lines.html -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at