Re: [Cbor] MIME tag 257 vs 36

Laurence Lundblade <lgl@island-resort.com> Sat, 26 September 2020 18:11 UTC

Return-Path: <lgl@island-resort.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6AC753A0C73 for <cbor@ietfa.amsl.com>; Sat, 26 Sep 2020 11:11:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.894
X-Spam-Level:
X-Spam-Status: No, score=-1.894 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yizNCUqs3nNq for <cbor@ietfa.amsl.com>; Sat, 26 Sep 2020 11:11:03 -0700 (PDT)
Received: from p3plsmtpa08-05.prod.phx3.secureserver.net (p3plsmtpa08-05.prod.phx3.secureserver.net [173.201.193.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CB55F3A0C6D for <cbor@ietf.org>; Sat, 26 Sep 2020 11:11:03 -0700 (PDT)
Received: from [192.168.1.81] ([76.167.193.86]) by :SMTPAUTH: with ESMTPA id MEf0kzwQUw4EOMEf1km5CX; Sat, 26 Sep 2020 11:11:03 -0700
X-CMAE-Analysis: v=2.3 cv=XM9OtjpE c=1 sm=1 tr=0 a=t2DvPg6iSvRzsOFYbaV4uQ==:117 a=t2DvPg6iSvRzsOFYbaV4uQ==:17 a=gKmFwSsBAAAA:8 a=OLC-38HLb-f0dZfM8VUA:9 a=QEXdDO2ut3YA:10 a=aTCCSWfHS9C4s2YA1nYA:9 a=R7DFt-B1VAn6xy18:21 a=_W_S_7VecoQA:10 a=nnPW6aIcBuj1ljLj_o6Q:22
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <09F863CA-8F23-467E-B6BD-CD14B1D3DA28@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_BAC8E437-C67D-4D17-A3DC-218AD447BCB4"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\))
Date: Sat, 26 Sep 2020 11:11:02 -0700
In-Reply-To: <3B3C1C2D-6831-496B-AB3F-50D23A128344@tzi.org>
Cc: cbor@ietf.org, Jim Schaad <ietf@augustcellars.com>
To: Carsten Bormann <cabo@tzi.org>
References: <77902B73-54E2-455C-88D3-D9CC62EDD84E@island-resort.com> <4271C433-0B38-4B05-AD44-01830EDBD834@tzi.org> <D4F397FE-79BF-41A5-9B14-3C2D9E7A83FA@island-resort.com> <C4D07067-D855-401F-9EA5-5F11F3896835@island-resort.com> <03e801d68f77$297a2800$7c6e7800$@augustcellars.com> <31F3B345-A983-45BA-BF8E-BEBB3881A13D@tzi.org> <7D9A02D7-6D3B-4466-9682-D957BEDCCA4C@island-resort.com> <2F089689-3E53-4DB1-81D7-60841721818E@tzi.org> <03268088-A7A8-4F7A-B923-ED3334BD992A@island-resort.com> <3B3C1C2D-6831-496B-AB3F-50D23A128344@tzi.org>
X-Mailer: Apple Mail (2.3445.104.17)
X-CMAE-Envelope: MS4wfF96uzzo8THfX3HaCjYYJ3KV4mXhULpxu4sqBH7gX1IYUI/onJ78/20Bz4v4FEu/xoIejt31n0Hh52Uh6MkptKJi2wwiRkiexsh5/cVanR3xTMqDRzS8 skyQQL6zb+E+nBzt/mHP4BDIATLoxeb++hrkV0riapFypCmBp0A/B0zxUtlow/TfGzz40eDSbp8e8ZxbNii2dOIfVR2JqDPbd4z79Z88aE4hlYpI6GVi9GJp
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/oMPdneMvxFOKfKeR_FTlnbm_O4c>
Subject: Re: [Cbor] MIME tag 257 vs 36
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Sep 2020 18:11:07 -0000


> On Sep 25, 2020, at 11:57 PM, Carsten Bormann <cabo@tzi.org> wrote:
> 
>> The majority of use cases and CBOR protocols using type 3 text will work with either line ending. However, some use cases or protocols may not work with either in which case translation to and/or from the local line end convention, typically that of the OS, is necessary.
> 
> I think the important observation is that most of the limitations to one type of line ending stem from using line endings as part of the encoding/framing of a TCP-based protocol. E.g., SMTP is less tolerant of modern line endings because it needs to react to CRLF dot CRLF (unless some SMTP framing is used).  That is not a problem with CBOR-based protocols, as the framing is coming from the self-delimiting CBOR encoding, not from parsing text streams.
> 
>> Are you proposing that CDDL be able to specify a line end convention for type 3 items?
> 
> I think that might be useful.  Most text strings in CBOR protocols are “1-D”, i.e., they don’t employ line endings.  Where “2-D” text is intended, indicating a preference for a form of line ending, or a restriction to a form of line ending, might be useful.  Of course, restricting text content can today be done with regexes (and soon with ABNF); there is no .feature in regex/ABNF though…

I was thinking more of CBOR-based protocols that need to carry 2-D text than protocol framing like SMTP needs. Needs to work with text editors like git. A query protocol against a database that stores text that cares about the line ending. Some text-based error log recorder. The protocol designer should specify what to do. The CDDL would help.

LL