[Cbor] Recent cbor.me fixes

Carsten Bormann <cabo@tzi.org> Sun, 16 January 2022 13:56 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost []) by ietfa.amsl.com (Postfix) with ESMTP id 0269C3A0E91 for <cbor@ietfa.amsl.com>; Sun, 16 Jan 2022 05:56:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([]) by localhost (ietfa.amsl.com []) (amavisd-new, port 10024) with ESMTP id dAsUjZq36Wj5 for <cbor@ietfa.amsl.com>; Sun, 16 Jan 2022 05:56:47 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8DA563A0E8C for <cbor@ietf.org>; Sun, 16 Jan 2022 05:56:46 -0800 (PST)
Received: from [] (p5089a436.dip0.t-ipconnect.de []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JcGmS3mJ9zDCbW; Sun, 16 Jan 2022 14:56:40 +0100 (CET)
From: Carsten Bormann <cabo@tzi.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mao-Original-Outgoing-Id: 664034200.048476-52c17b973b4e5f3d6bc620a131d60d32
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.\))
Date: Sun, 16 Jan 2022 14:56:40 +0100
Message-Id: <9C63C1A5-7159-43EB-A78E-25C2B36E6809@tzi.org>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3608.
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/zdmQPp7hu4TWiWh_8gLdKpEUtsU>
Subject: [Cbor] Recent cbor.me fixes
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: Sun, 16 Jan 2022 13:56:52 -0000

Anders Rundgren is kind enough to tell me when cbor.me isn’t quite working as it should.

This led me to the following two fixes:

0.7.2: Fixes #19 "Mixing non-ASCII and \unnnn in a single string breaks"
0.7.4: Make string output more JSON-compatible

(Before 0.7.4, cbor.me would happily output \a, \v, \e in CBOR diagnostic notation which don’t exist there as the string syntax is based on JSON syntax.)

This is live in cbor.me (*), but also can be used locally as part of the cbor-diag gem.  As always, update that as follows:

	gem update cbor-diag

If there are unexpected side effects from theses fixes, please tell me.

Grüße, Carsten

(*) Play with https://cbor.me/?diag=%22\u0007ö🦄%22 :-)