From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6LLjOvd0umNd2gAAbAwnHQ (envelope-from ) for ; Sun, 08 Jan 2023 08:47:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wNQcOvd0umOUYAEAG6o9tA (envelope-from ) for ; Sun, 08 Jan 2023 08:47: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 8FCA2327FA for ; Sun, 8 Jan 2023 08:47:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEQNk-0004Gr-Ho; Sun, 08 Jan 2023 02:46:16 -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 1pDiDz-0005kE-Jy for emacs-orgmode@gnu.org; Fri, 06 Jan 2023 03:37:18 -0500 Received: from relay11.mail.gandi.net ([2001:4b98:dc4:8::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDiDx-0008Hg-AE for emacs-orgmode@gnu.org; Fri, 06 Jan 2023 03:37:15 -0500 Received: (Authenticated sender: stephen@eglen.org.uk) by mail.gandi.net (Postfix) with ESMTPSA id 16AC7100004; Fri, 6 Jan 2023 08:37:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eglen.org.uk; s=gm1; t=1672994227; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=gMMvJYzJ5Ea5WEhcUs6Lq9OP7IWGWfx5BPS1u4gTQ08=; b=lc3KSRWaIRwXEBMWrDOybUDgjfWjyohuSfTE2WIFpnl0OtgRYy5vsTm9xCYFx5BcLKAudU zjcQCnsLVa1/oqLz9EJysX2ba7uaXTzEB3Q+anSs2+riuP6zdIS59LjuLbau6pMX1LnoPz jcz7rd5ffDZ+jUBhL2QX2g1dNMgHBfF98vLpC9+7ciAROFKdsVVfZhPcgOoQSoDagS4gSx KK0yTfHL6871/PkUbT1dnxDOAy6tqpl5dVUqiL6+cTw3BkBBu/xSzLVo24yi8NL5Pwtc8d Oww9wphvkr+wJZtsCi9ZKyv16gjUOPUWUp1G2UHnDowo+9yR2N+A+gpFNYlVJQ== User-agent: mu4e 1.8.13; emacs 29.0.50 From: "Stephen J. Eglen" To: emacs-orgmode@gnu.org Cc: mail@nicolasgoaziou.fr Subject: Bug report for ox-icalendar: newlines should be CRLF Date: Fri, 06 Jan 2023 08:30:41 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2001:4b98:dc4:8::231; envelope-from=stephen@eglen.org.uk; helo=relay11.mail.gandi.net X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FROM_FMBLA_NEWDOM=1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 08 Jan 2023 02:46:14 -0500 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=1673164023; a=rsa-sha256; cv=none; b=b3NsFmlFNZMyctEJlmO+lElQp81SeRZty4N5u4w+4hc9JVRT8EEL4ziCc0gl3+ScE9qTci f23h15fs7VS0kHF8UFzKNmI8LMk/Xm/Eecic2zVzOBAqvgumkAo6JOerkLBeazrSo2fVH9 RCXltUcXIL8Yyhkx8D6G3tWoouvVe1LF4O5yugttsTL/BxC8S6AdKO5MCP0zq5wVVEe8El 5LamQCIIsYwj7JQOLVqwISA7OD8SqvUPITxhA/7AeUbeGfM5dpOlxSaYlTeQ5Zl5xmxTbT mznhdt6NwiPrjRDTISH84j3Pj8LVOcC8f24kth2M22amlXI0rPUxnKOOXMf+hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=eglen.org.uk header.s=gm1 header.b=lc3KSRWa; 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=1673164023; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gMMvJYzJ5Ea5WEhcUs6Lq9OP7IWGWfx5BPS1u4gTQ08=; b=R/o+wTVmRC+tRo3Vqv6o6e4FmmQCx2dCvZk1LxfgiHnu+doSbN3pz9cRuNF6dkmbL3HPjF Miokh3LrGTqjPUCa7PmPDYAJdS4IBtz1D170vArSuqRxY1UdUBzvaBn53dYjHsG8g5B2lU EC/BSzkapXYcWEpAAh4DLisCrVi8/BS/S8iZBQPAw2kFg7uMuvytjhAyJsKgsZcUEPr2cD hSxQBosz+JY/wEKkpyS8XNDyfOgonAhYcHcKRXuwQWNbqcJGk/dOF2hi7wvtNEJvNizzqb CYB13CLcQ9kALSIQHUPb30Fs72IfuhFI3/FlqWoOfGw886rGLVzslk1wbHc4iw== X-Spam-Score: -3.96 X-Migadu-Queue-Id: 8FCA2327FA Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=eglen.org.uk header.s=gm1 header.b=lc3KSRWa; 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: -3.96 X-TUID: WfIUuHL8qPZR --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, If I have a test file ---------------------------------------------------------------------- * test 1 <2023-01-05 Thu 19:00-19:20> ---------------------------------------------------------------------- and then convert to an .ics file using C-c C-e c f I get the attached test.ics file, but copied here too: 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 The lines from BEGIN:VEVENT to CATEGORIES:test inclusive have CR (^M) as we= ll 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 Best wishes, Stephen --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=test.ics Content-Transfer-Encoding: base64 QkVHSU46VkNBTEVOREFSClZFUlNJT046Mi4wClgtV1ItQ0FMTkFNRTp0ZXN0ClBST0RJRDotLy9T dGVwaGVuIEouIEVnbGVuLy9FbWFjcyB3aXRoIE9yZyBtb2RlLy9FTgpYLVdSLVRJTUVaT05FOkdN VApYLVdSLUNBTERFU0M6CkNBTFNDQUxFOkdSRUdPUklBTgpCRUdJTjpWRVZFTlQNCkRUU1RBTVA6 MjAyMzAxMDVUMjIxNDMxWg0KVUlEOlRTMS04MURFN0U5Qy0wMzg1LTQ5Q0UtODUyOC1DMkZENTEz NzJDQjQNCkRUU1RBUlQ6MjAyMzAxMDVUMTkwMDAwWg0KRFRFTkQ6MjAyMzAxMDVUMTkyMDAwWg0K U1VNTUFSWTp0ZXN0IDENCkRFU0NSSVBUSU9OOjwyMDIzLTAxLTA1IFRodSAxOTowMD7igJM8MjAy My0wMS0wNSBUaHUgMTk6MjA+DQpDQVRFR09SSUVTOnRlc3QNCkVORDpWRVZFTlQKRU5EOlZDQUxF TkRBUgo= --=-=-=--