From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oDNYGiKEumNtWQAAbAwnHQ (envelope-from ) for ; Sun, 08 Jan 2023 09:51:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4LkyGiKEumNk9wAAauVa8A (envelope-from ) for ; Sun, 08 Jan 2023 09:51:46 +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 D03B414515 for ; Sun, 8 Jan 2023 09:51:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEROZ-0008Mc-JR; Sun, 08 Jan 2023 03:51:11 -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 1pEROX-0008ME-1s for emacs-orgmode@gnu.org; Sun, 08 Jan 2023 03:51:09 -0500 Received: from mail-sender-5.unibw-hamburg.de ([139.11.10.105] helo=premail.unibw-hamburg.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEROS-0003HH-In for emacs-orgmode@gnu.org; Sun, 08 Jan 2023 03:51:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hsu-hh.de; s=hsu-hh_de; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References :In-Reply-To:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IPtr+w2L+A5GImro0plEEk/AgE9WFmKPbsi0gfWuxgw=; t=1673167862; x=1674031862; b=ifrMhZLyfulHfLc8fr6MQSYoppR/pNZEyGuPynd/GR/U4/kXVwcktYnWjJNzKC0fyPYJb9oG/kY d7OXPYCqF97BSsfiHgLeNo4/HnaxlxIaaLL8WqV9y0EUyZsrNBOxSKFFYfDSsL2hM8NEH/1PE/nt4 jEGbDE9DnSPD6rONDF+E7SbRT2p47zatWH8bxmLLFPsyML8BduX869/2B1T37w1HSNLJU7ZfD6HEe iOexSMmXawktgB3dLv1stMurN/NIdZ29JZifZBp2ZJiHZecNOadb8VA2C+CeA3XKhP5b/fSROamwA D/fBxzjOLHNsnS/ur8LDlWBmfvDdpUZ86x8Q==; Received: from rzav4.unibw-hamburg.de ([139.11.12.54]:61407) by premail.unibw-hamburg.de with esmtp (HSU Mailserver) (envelope-from ) id 1pEROY-00034A-Go for emacs-orgmode@gnu.org; Sun, 08 Jan 2023 09:51:01 +0100 X-IronPort-AV: E=Sophos;i="5.96,309,1665439200"; d="scan'208";a="79984782" Received: from mailcluster-1.unibw-hamburg.de (HELO premail.unibw-hamburg.de) ([139.11.5.101]) by rzav4.unibw-hamburg.de with ESMTP; 08 Jan 2023 09:51:01 +0100 Received: from [212.53.218.115] (port=44874 helo=linux.fritz.box) by premail.unibw-hamburg.de with esmtpsa (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (HSU Mailserver) (envelope-from ) id 1pEROY-0002zz-8L; Sun, 08 Jan 2023 09:51:01 +0100 Date: Sun, 8 Jan 2023 09:50:25 +0100 From: Detlef Steuer To: emacs-orgmode@gnu.org Subject: Re: Bug report for ox-icalendar: newlines should be CRLF Message-ID: <20230108095025.2ea09b97@linux.fritz.box> In-Reply-To: References: Organization: HSU X-Mailer: Claws Mail 4.1.1 (GTK 3.24.35; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-HSU-Virusscan: Routed to first Viruswall X-Brisant: Sender steuer@hsu-hh.de X-HSU-Virusscan: First Viruswall passed X-Authenticated-Sender: 13438/212.53.218.115 X-HSU-Virusscan: Routed to second Viruswall (Cisco Ironport ESAV) X-Brisant: Sender steuer@hsu-hh.de Received-SPF: pass client-ip=139.11.10.105; envelope-from=prvs=03727ce9b8=steuer@hsu-hh.de; helo=premail.unibw-hamburg.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, 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=1673167906; a=rsa-sha256; cv=none; b=jSlPZhZAFk20t3npW0cN51kgvMAiystyNlUzrzX2v5l/0HOAdneFUTYwwoXjl25vpNc9Yx 66qiuOUXWyjY3VEkP0VCuewaUYJveMZDnjZ8DavuzC3iwvwDsCfD50mXTefq7l0NSbbFOU Cxc7pOj6yVuip/sKBbc2fwHYyi4AZaCWe6HZPXKdVDc8IBq4EH132/M7NfBguzs1VM29uB m7ZUcoFRgDJRRbinnu/+1WCNxp/OM1O9fzzc75RrDQZ1J9+wJkaE3po2eFY9x3u/vV3Cyx AwbT8x0sJAt0QeILGWbjgmFU89sKGY65Oyqc5uQH//fIaZYBXLR46v5XXRaZNw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hsu-hh.de header.s=hsu-hh_de header.b=ifrMhZLy; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673167906; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=IPtr+w2L+A5GImro0plEEk/AgE9WFmKPbsi0gfWuxgw=; b=ef3E6Euda9L/rGC6WGvxcmldwl5XCmuO7/erKBDr+I3rGht9paMkbJx6Rd/PA2sLb+/rGn fAyGlx5BYKwssak3wZ8OIAoQN0YUoQPRtYoGwgGGPVPFYZ0BeBRMpN3EplFXY8rpn/5TMW sX3iZ8CdfsT4GET/AXyXtDvAsLcIvgc7vcJDc98sfCT+bDX3yKmwc7mJM/C3viPAAfmGX6 xVxYNNh1M1suCyNeJpvWcFq8HKVdRdliSXLrr/EPaqyonJ2zRY8dbkmb/lFaxNlYeS1Z2K DFe602hzju1FVRW3P9u6NigtLTPjDj3+Q1j2eY+GA73CXWIkky9In+d3jluCCQ== X-Spam-Score: -2.86 X-Migadu-Queue-Id: D03B414515 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hsu-hh.de header.s=hsu-hh_de header.b=ifrMhZLy; 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=none X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.86 X-TUID: Fuos5o9ckfVj Hello, just to confirm. The exporter is inconsistent in adding which kind of EOL sequence. Detlef Am Fri, 06 Jan 2023 08:30:41 +0000 schrieb "Stephen J. Eglen" : > Hello, >=20 > If I have a test file >=20 > ---------------------------------------------------------------------- >=20 > * test 1 >=20 > <2023-01-05 Thu 19:00-19:20> >=20 > ---------------------------------------------------------------------- >=20 >=20 > and then convert to an .ics file using C-c C-e c f >=20 > I get the attached test.ics file, but copied here too: >=20 > BEGIN:VCALENDAR > VERSION:2.0 > X-WR-CALNAME:test > PRODID//Stephen J. Eglen//Emacs with Org mode//EN > X-WR-TIMEZONE:GMT > X-WR-CALDESC: > CALSCALE:GREGORIAN > BEGIN:VEVENT *** > DTSTAMP:20230105T221431Z *** > UID:TS1-81DE7E9C-0385-49CE-8528-C2FD51372CB4 *** > DTSTART:20230105T190000Z *** > DTEND:20230105T192000Z *** > SUMMARY:test 1 *** > DESCRIPTION:<2023-01-05 Thu 19:00>=E2=80=93<2023-01-05 Thu 19:20> *** > CATEGORIES:test *** > END:VEVENT > END:VCALENDAR >=20 > 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 >=20 > > Lines not delimited by CRLF sequence near line # 1 > > Reference: RFC 5545 3.1. Content Lines =20 >=20 > 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 >=20 >=20 >=20 >=20 > Best wishes, Stephen >=20 >=20