Re: [Json] Proposed minimal change for strings

"Manger, James H" <James.H.Manger@team.telstra.com> Wed, 03 July 2013 03:56 UTC

Return-Path: <James.H.Manger@team.telstra.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EBAF411E815E for <json@ietfa.amsl.com>; Tue, 2 Jul 2013 20:56:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.901
X-Spam-Level:
X-Spam-Status: No, score=-0.901 tagged_above=-999 required=5 tests=[AWL=0.001, BAYES_00=-2.599, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RELAY_IS_203=0.994]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 54hPqc9nN417 for <json@ietfa.amsl.com>; Tue, 2 Jul 2013 20:56:49 -0700 (PDT)
Received: from ipxbno.tcif.telstra.com.au (ipxbno.tcif.telstra.com.au [203.35.82.204]) by ietfa.amsl.com (Postfix) with ESMTP id 8215D11E8151 for <json@ietf.org>; Tue, 2 Jul 2013 20:56:48 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.87,985,1363093200"; d="scan'208";a="137318841"
Received: from unknown (HELO ipcbni.tcif.telstra.com.au) ([10.97.216.204]) by ipobni.tcif.telstra.com.au with ESMTP; 03 Jul 2013 13:56:37 +1000
X-IronPort-AV: E=McAfee;i="5400,1158,7124"; a="143113680"
Received: from wsmsg3701.srv.dir.telstra.com ([172.49.40.169]) by ipcbni.tcif.telstra.com.au with ESMTP; 03 Jul 2013 13:56:37 +1000
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3701.srv.dir.telstra.com ([172.49.40.169]) with mapi; Wed, 3 Jul 2013 13:56:37 +1000
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>, "json@ietf.org WG" <json@ietf.org>
Date: Wed, 03 Jul 2013 13:56:37 +1000
Thread-Topic: [Json] Proposed minimal change for strings
Thread-Index: Ac53e7VCKrUVeAyrSO+04fT4GYGEyAAImh6w
Message-ID: <255B9BB34FB7D647A506DC292726F6E1151C10CC2D@WSMSG3153V.srv.dir.telstra.com>
References: <9BACB3F2-F9BF-40C7-B4BA-C0C2F33E4278@vpnc.org>
In-Reply-To: <9BACB3F2-F9BF-40C7-B4BA-C0C2F33E4278@vpnc.org>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US, en-AU
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Subject: Re: [Json] Proposed minimal change for strings
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
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: Wed, 03 Jul 2013 03:56:56 -0000

> <chair hats on>
> 
> Do either or both of these proposals work for people in the WG?
> 
> --Matt Miller and Paul Hoffman
> 
> The following are proposed minimal changes to make the JSON spec
> interoperable with respect to which unescaped code units are legal in
> strings.
> 
> Proposal 1 (allow all code units in their unescaped form):
> 
> In section 1 (Introduction):
>   Change the sentence about Unicode characters to:
>     A string is a sequence of zero or more Unicode code units
> [UNICODE].
> In section 2.2 (Strings):
>   Leave the production for "unescaped" as-is.
> In section 3 (Encoding):
>   Add "Some strings, notably those that have unescaped surrogate code
> units
>   (value 0xD800 to 0xDFFF), cannot be encoded in UTF-8."
> 
> Proposal 2 (prohibit unescaped surrogates):
> 
> In section 1 (Introduction):
>   A string is a sequence of zero or more Unicode scalar values
> [UNICODE].
> In section 2.2 (Strings):
>   Change the production for "unescaped" to be:
>     unescaped = %x20-21 / %x23-5B / %x5D-D7FF / %xE000-10FFFF


Yes, proposal 2 works for me.

--
James Manger