Re: [Json] Call for Consensus: Proposed Text for "8.1 Character Encoding"

Tim Bray <tbray@textuality.com> Tue, 18 April 2017 06:29 UTC

Return-Path: <tbray@textuality.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 C2FB7129426 for <json@ietfa.amsl.com>; Mon, 17 Apr 2017 23:29:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=textuality-com.20150623.gappssmtp.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 sXaKwCOqoXIa for <json@ietfa.amsl.com>; Mon, 17 Apr 2017 23:29:30 -0700 (PDT)
Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com [IPv6:2607:f8b0:400e:c00::233]) (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 00470128796 for <json@ietf.org>; Mon, 17 Apr 2017 23:29:29 -0700 (PDT)
Received: by mail-pf0-x233.google.com with SMTP id 194so36889284pfv.3 for <json@ietf.org>; Mon, 17 Apr 2017 23:29:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=textuality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=i+TNpn2bR+U1yQANMlkZS1LV6UB5LU76g1AYy0bcMD0=; b=nIkMsxBZAThqH4zLwzeAcqz5QfolJzvZMygES+BliAxdLH63EBJ+jyAd8D514lcW35 wrHmoSyuBxlFUhaX58RtLsBjQtocL6V1TX/Rb9v0GU5rU201XfgYgIJUe5bRYxSiq91k CmPoI/sswjt0FwIdDU+pspnbs7TKB5+WGsGwvtThgzdPnALX2Mf3i5peYRU8RnUvHR/a Td5a2ujSX8n5zEA9gnWzNAwfbVTWy0EkzmDPMlrUsQapCu2Yqrv6JSR5kqScIuBv32ro Ts6j3eXlV9Npnki+uNbPgSnjnBoKjwVWowm+ZlcoHdk5LonUjDnR3tk+yfItdfICBWPV CyPA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=i+TNpn2bR+U1yQANMlkZS1LV6UB5LU76g1AYy0bcMD0=; b=RKslXS1N7/HUoJ0a7ReLTwjeYFLYn1e3ys1PTmJg1NjS5AkaOV6cbvYFdxtSdRlECS VdtZI0asfb0l70oWGakwwu59+iccYoF6+h9ZClJ7f2DVwqWVa9aoEprQj5g4YJx8xLxj ot9LiJfWl85iwpm+9RV7Z5UoNKQuZ1sZ3iSa6/YfxhU17nnqBIUBX9ae8dFaGC/x0tR0 lu+JHjTSIIOTYs7iyCWXz8HPN7VOYpp6pPWz6mRB6BPPj+GAVSg6vUNGmyHeVWznmPID OGb8AOEkH3VwrbQxTFrt5tpqI9YHmfpuJbqFXZNL6/g/nCAG9sFTfwAtKTm61kySahuZ GJrw==
X-Gm-Message-State: AN3rC/7ELcss4kur1EccLQc/UI6KWrF5us43B17lPKL0rliP+nrMJMYn FkiIndVOFqAwu9hmAJEOWx9U0FkGsQ==
X-Received: by 10.98.131.197 with SMTP id h188mr15612517pfe.99.1492496969457; Mon, 17 Apr 2017 23:29:29 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.179.99 with HTTP; Mon, 17 Apr 2017 23:29:08 -0700 (PDT)
X-Originating-IP: [24.86.134.32]
In-Reply-To: <10B651F1-7FE0-484D-BD2E-FD146BC5FB04@tzi.org>
References: <e69d7c21-85cb-45f4-c0c2-34c624e63049@outer-planes.net> <14252631-AD76-4537-89BF-6368F4A8CDF4@att.com> <7e6af21f-16ea-a3bc-9c01-595ae8acebba@gmx.de> <05100401-88D4-4158-A3FF-3EF144D85449@att.com> <CAD2gp_T0bfpnsCA_t4BAMtEhr7p8JkZggjnY4F+m9-M2hWLfmw@mail.gmail.com> <1e94516c-9c82-8b0e-0d2d-7dbaa83b21bd@outer-planes.net> <40e3207f-e047-c898-1f0c-4422de1d597a@it.aoyama.ac.jp> <1b3ec14a-927a-8d46-e3d3-9807a9588437@outer-planes.net> <CAHBU6ivsq8+Z=MMkUH+=Q0uwc5NCtaJLYw5cp0Qg8eX2hQQ6sA@mail.gmail.com> <b74cb31b-8e04-17d0-548a-fc164ce07c05@outer-planes.net> <20170417175627.GK23461@localhost> <10B651F1-7FE0-484D-BD2E-FD146BC5FB04@tzi.org>
From: Tim Bray <tbray@textuality.com>
Date: Mon, 17 Apr 2017 23:29:08 -0700
Message-ID: <CAHBU6is=JEnDZTcK0fbMn+G2POadki2gfTwzukZRtNCy9oSMEQ@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: "Matthew A. Miller" <linuxwolf+ietf@outer-planes.net>, "json@ietf.org" <json@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c11b6feb17f7a054d6b07d4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/aws-exAoA3g4BYmQxOU_Tuv2xj8>
Subject: Re: [Json] Call for Consensus: Proposed Text for "8.1 Character Encoding"
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.22
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: <https://mailarchive.ietf.org/arch/browse/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, 18 Apr 2017 06:29:32 -0000

My position is the same as Carsten’s.

On Mon, Apr 17, 2017 at 1:47 PM, Carsten Bormann <cabo@tzi.org> wrote:

> On Apr 17, 2017, at 19:56, Nico Williams <nico@cryptonector.com> wrote:
> >
> >> Thinking about this more, putting an encoding detection algorithm as an
> >> appendix seems like a reasonable compromise to me.  To start, how about
> >> removing the detection text from Section 8.1 and have an appendix that
> >> starts with that text plus the table?
> >
> > Or we could even just assert that such an algorithm is possible, and
> > that implementors MAY implement one.
>
> Indeed.
>
> Broken record mode:
>
> — writing up the algorithm sounds like encouraging implementation.
>   We *don’t* want people to implement this!
>   (The whole interminable non-UTF-8 saga probably just was a nod from the
> RFC 4627 authors to the remnants of UTF-16 land, which mostly have died off
> since.  Why resurrect?)
>
> - there have been about 15 attempts to define this algorithm on the
> mailing list.
>   All were wrong.
>   An Internet Standard should contain tried and true material, not errata
> fodder.
>
> - an implementer is in a much better position to get this right than the
> standard, because they can write unit tests.
>
> >
> >> Assuming the above, what does everyone think of the following for
> >> Section 8.1?
> >
> > +1.
>
> +1
>
> Grüße, Carsten
>
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json
>



-- 
- Tim Bray (If you’d like to send me a private message, see
https://keybase.io/timbray)