Re: [Json] The text in draft-ietf-json-text-sequence

John Cowan <cowan@mercury.ccil.org> Tue, 15 July 2014 07:06 UTC

Return-Path: <cowan@ccil.org>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 252851B282F for <json@ietfa.amsl.com>; Tue, 15 Jul 2014 00:06:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.251
X-Spam-Level:
X-Spam-Status: No, score=-3.251 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.651] autolearn=ham
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 02mxG-BSHSPy for <json@ietfa.amsl.com>; Tue, 15 Jul 2014 00:06:21 -0700 (PDT)
Received: from earth.ccil.org (earth.ccil.org [192.190.237.11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D7F6C1B282D for <json@ietf.org>; Tue, 15 Jul 2014 00:06:20 -0700 (PDT)
Received: from cowan by earth.ccil.org with local (Exim 4.72) (envelope-from <cowan@ccil.org>) id 1X6woY-0001Hb-N9; Tue, 15 Jul 2014 03:06:14 -0400
Date: Tue, 15 Jul 2014 03:06:14 -0400
From: John Cowan <cowan@mercury.ccil.org>
To: Nico Williams <nico@cryptonector.com>
Message-ID: <20140715070614.GH10065@mercury.ccil.org>
References: <FD9026FF-BDC5-451C-ABBC-0608AB63B819@vpnc.org> <CFE1A78C.52DE5%jhildebr@cisco.com> <20140715063853.GE2256@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20140715063853.GE2256@localhost>
User-Agent: Mutt/1.5.20 (2009-06-14)
Sender: John Cowan <cowan@ccil.org>
Archived-At: http://mailarchive.ietf.org/arch/msg/json/ql1EV7xqdtS7u5sAwxTjBmOESjA
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>, IETF JSON WG <json@ietf.org>
Subject: Re: [Json] The text in draft-ietf-json-text-sequence
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 15 Jul 2014 07:06:28 -0000

Nico Williams scripsit:

> and considering that if we used RS a logger would still have to check
> that a text to be logged does not include RS,...

How so?  JSON cannot contain unescaped RS; an RS in a string must
appear as \u001F.

> Loggers would have to s/LF/SP/g or s/LF//g or equivalent.  But in the
> common case this is equivalent to checking that a text to be logged has
> no RS.

No such check is called for.

-- 
John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
A rose by any other name may smell as sweet, but if you called it
an onion you'd get cooks very confused.          --RMS