Re: [apps-discuss] Feedback on draft-ietf-appsawg-json-pointer-00
Tim Bray <tbray@textuality.com> Fri, 02 March 2012 05:16 UTC
Return-Path: <tbray@textuality.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2889521E8014 for <apps-discuss@ietfa.amsl.com>; Thu, 1 Mar 2012 21:16:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.785
X-Spam-Level:
X-Spam-Status: No, score=-3.785 tagged_above=-999 required=5 tests=[AWL=-1.108, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-1]
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 4pkCy0yqNiMl for <apps-discuss@ietfa.amsl.com>; Thu, 1 Mar 2012 21:16:24 -0800 (PST)
Received: from mail-tul01m020-f172.google.com (mail-tul01m020-f172.google.com [209.85.214.172]) by ietfa.amsl.com (Postfix) with ESMTP id 1212121E800E for <apps-discuss@ietf.org>; Thu, 1 Mar 2012 21:16:23 -0800 (PST)
Received: by obbeh20 with SMTP id eh20so1892373obb.31 for <apps-discuss@ietf.org>; Thu, 01 Mar 2012 21:16:23 -0800 (PST)
Received-SPF: pass (google.com: domain of tbray@textuality.com designates 10.182.48.36 as permitted sender) client-ip=10.182.48.36;
Authentication-Results: mr.google.com; spf=pass (google.com: domain of tbray@textuality.com designates 10.182.48.36 as permitted sender) smtp.mail=tbray@textuality.com
Received: from mr.google.com ([10.182.48.36]) by 10.182.48.36 with SMTP id i4mr3076158obn.72.1330665383441 (num_hops = 1); Thu, 01 Mar 2012 21:16:23 -0800 (PST)
MIME-Version: 1.0
Received: by 10.182.48.36 with SMTP id i4mr2667299obn.72.1330665383332; Thu, 01 Mar 2012 21:16:23 -0800 (PST)
Received: by 10.182.137.69 with HTTP; Thu, 1 Mar 2012 21:16:23 -0800 (PST)
X-Originating-IP: [24.84.235.32]
In-Reply-To: <4F50453B.5020708@it.aoyama.ac.jp>
References: <4F4FD8A5.6010603@cloudmark.com> <1330638350.2531.11.camel@neutron> <4F50453B.5020708@it.aoyama.ac.jp>
Date: Thu, 01 Mar 2012 21:16:23 -0800
Message-ID: <CAHBU6is1Y-iaqwps0XLBm8jLLYDZC-0pQ0n6taMB1uCp3ctpSw@mail.gmail.com>
From: Tim Bray <tbray@textuality.com>
To: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQmHvKJsMl/m2QnTVGAIAIdr9SGfV1DMBXNU/ee6KK5BBe4LrcXImNCvUhKLUxRQsgKJO3fc
Cc: IETF Apps Discuss <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Feedback on draft-ietf-appsawg-json-pointer-00
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Mar 2012 05:16:25 -0000
This thread has convinced me that it’s still easy after all these years for people to go down rabbit holes on this issue, and therefore the draft should be explicitly clear that key equality MUST be determined codepoint-by-codepoint as Martin suggests. -T On Thu, Mar 1, 2012 at 7:57 PM, "Martin J. Dürst" <duerst@it.aoyama.ac.jp> wrote: > On 2012/03/02 6:45, Paul C. Bryan wrote: >> >> On Thu, 2012-03-01 at 12:14 -0800, Mike Acar wrote: > > >>> That is, if the reference token equals the name of some value within the >>> object, move to that value. However, the tokens and values are Unicode >>> strings; I'm not an expert in Unicode, but my impression is that testing >>> Unicode strings for equality is not as simple as comparing sequences of >>> bytes. For example, there are linguistic considerations: I believe >>> German ö and oe are considered identical. >> >> >> >> While we may consider ö and oe to be linguistically equivalent, I do no >> believe they are considered lexicographically equivalent in a Unicode >> string comparison. Someone please correct me if I'm wrong. Would it help >> to define the comparison as being lexicographical? > > > No. Lexicographical is usually used with respect to order, not equivalence > (see e.g. http://en.wikipedia.org/wiki/Lexicographical_order) > > >>> There's also the question of JSON documents with different encodings; >>> UTF8 is the default, but UTF-16 and -32 with both endiannesses are also >>> supported. Presumably this question will disappear in practice, since >>> implementations will operate on deserialized data structures, not on >>> JSON texts. >> >> >> Since they're logically the same underlying Unicode representations, I'm >> not sure there's any issue to consider here. > > > The best way to spec this is to say that equivalence is checked > codepoint-by-codepoint. That solves both issues, because codepoints are > independent of UTF-8/UTF-16/UTF-32, simply the Unicode character numbers. > > Regards, Martin. > > _______________________________________________ > apps-discuss mailing list > apps-discuss@ietf.org > https://www.ietf.org/mailman/listinfo/apps-discuss
- [apps-discuss] Feedback on draft-ietf-appsawg-jso… Mike Acar
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Tim Bray
- [apps-discuss] Identifier comparison in draft-iet… Julian Reschke
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Paul C. Bryan
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Martin J. Dürst
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Tim Bray
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Paul C. Bryan
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Mike Acar
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Mike Acar
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Murray S. Kucherawy
- [apps-discuss] json-pointer #5 - semantics [was: … Mark Nottingham
- Re: [apps-discuss] json-pointer #5 - semantics [w… Murray S. Kucherawy
- Re: [apps-discuss] json-pointer #5 - semantics [w… Mike Acar
- Re: [apps-discuss] json-pointer #5 - semantics [w… Paul C. Bryan
- Re: [apps-discuss] json-pointer #5 - semantics [w… Martin Thomson
- Re: [apps-discuss] json-pointer #5 - semantics [w… Paul C. Bryan
- Re: [apps-discuss] json-pointer #5 - semantics [w… Martin Thomson
- Re: [apps-discuss] json-pointer #5 - semantics [w… Mark Nottingham