Re: [Cbor] Benjamin Kaduk's No Objection on draft-ietf-cbor-cddl-05: (with COMMENT)

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 19 November 2018 00:37 UTC

Return-Path: <brian.e.carpenter@gmail.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 15F14129385; Sun, 18 Nov 2018 16:37:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 3Zx_nL1caQEa; Sun, 18 Nov 2018 16:37:34 -0800 (PST)
Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6CC451293FB; Sun, 18 Nov 2018 16:37:34 -0800 (PST)
Received: by mail-pg1-x52e.google.com with SMTP id z11so10384784pgu.0; Sun, 18 Nov 2018 16:37:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AOLxLR5LKBrBl7Z9SggAfRgfx4mENdDU0g3zaTZuIwU=; b=CbX5SOg3PwZlwrI9ZOLTH9G+nIMFSUEcGwsP6zg2iWjvZBhW5RS4Z5hq4XtbNUG/P0 LUGHpshj1csdAIxrzqcBvV32yGEbj00NfYGIVxrtLZS9bk2qMlQ9zXzAroEQLTRxbC8D L3cfVLlysMlGzRJL/4fV4X2ZGvA14ady5LZ8S9IQiJTHwGRpj2jTlBFAe5wLXxeo8qGS wHUEMCv9OeieVyq9gFN16jsFbkGsOfkM5qXnOOJvLfDeL8Swpw/q5glofDSzx/ztv9+I nd9xk8vMtKSVbdw40rYBq4PMMjmPxtmMiMIa1DH25S8Trkryz6UrehDgOEqS+b5s/87m ouOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AOLxLR5LKBrBl7Z9SggAfRgfx4mENdDU0g3zaTZuIwU=; b=dWAluHH6Rfl/SkAzm6Hs6x6OoRnbKRb5WUBWuivj44xZcABW9VHsmJTNnsg/Hf/5Y5 ZgpLV5Pl62dFd7iHu9y9ic5l+1eeFDwUt4oTtdhiBmdnoYDPWgbtu29q67CNUsFcgVjZ m7sDe7ibvgSJhsPSa6LAqYPhiHtD2sCZLm3FAZUpM6NMT7Y3mC+tGFyfcoihQoN6C2jR /Bp8wscGAwPf3ld+nkYrFve+0alFcdao+5o/j1BYL6oNxGkxCuf/p6M7ZqTTlLOLFPo9 9LUitsMMqxvqq0Oo439E+c/vnC9NDYXna4tYIk7ZRlfHzge/cOYe1/8i4RivDyhdDkcP cu0g==
X-Gm-Message-State: AGRZ1gK1gPtdNI4FnT9HfzWm2DYt1oIFUfuQVTuaDXzrO1ktGi5/6VbQ XSRGS1cevlzstzLnTcf5hVFrdA04
X-Google-Smtp-Source: AJdET5eWFnGWl71CAbg6e7T3b22ENZlpmYM6nRCrkf6t8WirsrCXX8qQq6ZUiKlS6PcaBlwe9D7Dsw==
X-Received: by 2002:a62:fc86:: with SMTP id e128mr21560028pfh.54.1542587853702; Sun, 18 Nov 2018 16:37:33 -0800 (PST)
Received: from [192.168.178.30] ([118.148.76.40]) by smtp.gmail.com with ESMTPSA id g190sm38228199pgc.28.2018.11.18.16.37.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Nov 2018 16:37:32 -0800 (PST)
To: Benjamin Kaduk <kaduk@mit.edu>, The IESG <iesg@ietf.org>
Cc: cbor@ietf.org, barryleiba@computer.org, cbor-chairs@ietf.org, draft-ietf-cbor-cddl@ietf.org
References: <154258532777.2578.8591857608340815014.idtracker@ietfa.amsl.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <7cdb2d28-3f6c-a013-b5f3-337930854c45@gmail.com>
Date: Mon, 19 Nov 2018 13:37:29 +1300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <154258532777.2578.8591857608340815014.idtracker@ietfa.amsl.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/KNeIoENYc3lfmKeK_OghSlyA40Q>
Subject: Re: [Cbor] Benjamin Kaduk's No Objection on draft-ietf-cbor-cddl-05: (with COMMENT)
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: Mon, 19 Nov 2018 00:37:37 -0000

On 2018-11-19 12:55, Benjamin Kaduk wrote:
...> Section 3.1
> 
>    o  CDDL uses UTF-8 [RFC3629] for its encoding.
> 
> It's pretty rare for it to be sufficient to just say "UTF-8" in a technical
> spec; what kind of internationalization review has been done?  Do we need
> to specify anything about normalization or canonicalization?

IMHO there is nothing to say here, but of course a protocol definition that
uses UTF-8 needs to cover these questions. 

Worked example: 

  objective = [objective-name, objective-flags, loop-count, ?objective-value]
  objective-name = text
  objective-value = any
  loop-count = 0..255

   All objectives are identified by a unique name which is a UTF-8
   string [RFC3629], to be compared byte by byte.

[draft-ietf-anima-grasp-15 page 37]

It might be worth a note in CDDL to say that CDDL is agnostic on this
but protocol specs need to cover it.

     Brian