Re: [Json] secdir review of draft-ietf-jsonbis-rfc7159bis-03

Julian Reschke <julian.reschke@gmx.de> Sun, 12 March 2017 09:14 UTC

Return-Path: <julian.reschke@gmx.de>
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 80DA7129B01; Sun, 12 Mar 2017 01:14:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 xPwwWuK9R5zL; Sun, 12 Mar 2017 01:14:33 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 BC607129B00; Sun, 12 Mar 2017 01:14:32 -0800 (PST)
Received: from [192.168.178.20] ([93.217.89.49]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Ld0E0-1cMlZt0Pwm-00iAfB; Sun, 12 Mar 2017 10:14:05 +0100
To: Peter Cordell <petejson@codalogic.com>, Ned Freed <ned.freed@mrochek.com>
References: <20170308014823.GF30306@kduck.kaduk.org> <382aa5c8-c977-b24d-4d19-251257833b00@gmx.de> <456b4234-0d94-1033-507c-710878bb5159@gmx.de> <20170309055348.GL30306@kduck.kaduk.org> <CAD2gp_TOxcZJxwPoMhq-xp6M+Yq+tQnMUv81YNFp-ydRMpH=5w@mail.gmail.com> <bed0e331-f5fb-f24d-6207-f5a36ec9e7be@gmx.de> <01QBU8WJOCUO0003XB@mauve.mrochek.com> <6d97dee7-7cf3-9142-aacf-f2ca4909103d@codalogic.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <cbbd0224-da58-bac5-b751-4195dd7383dc@gmx.de>
Date: Sun, 12 Mar 2017 10:14:04 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <6d97dee7-7cf3-9142-aacf-f2ca4909103d@codalogic.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:EBZZbuwf0wSMyEt5vpfTrDMD2A2TLrR/v0XrY+AFn9pTUiYCtQn 1JfsTBIPy8gpy4+ZzArmk3beM13BFRcinJzwghAXdFt2GZDVvyQTfvmOs+vdUcJsH4dpqAL /hE+EDxmuv0xshk/6X3blC6gekmdD03LwLNlXc8eLsl6TTEV4apZpMoIX6G0O1RSYDnGunB S+B0OClX0XzR41rmzuU0g==
X-UI-Out-Filterresults: notjunk:1;V01:K0:XR2BrSIL2Yo=:3bGUZ2Dop4QI8MYQmVx/xF 61IyODJT8d7ulKG3BZeDQCONozTzTQJ4MJe3W47QtEVe0GQYjt4COVoD7qQ3xrAdF6+cSiJGe bXJv6xKz6jsIgNCp9tip6C7Y2lOOyM0oEjbHhnI+33U2gvEiZ7GaRvLDOmmH5BoYZKSZ00ABV vTRXLvjTWMGBRnPp/L08c4SyVNn3tyIEg/JjzTWyJrxWIx00Lvtl7knHy1HsF5K44NRyvRl3Q jlpvRXAvNKYFTjXxSkxXHE1VmcS3HhXbVURUeDWf9EeJM9sS3O0LxBH4FChzrbDtZ56WAkHwt 7btAJKCSUeW+ufUNHVLv57swS8q/cEYge8Rwx5l3ykhxVp7hb5/FZbyQeujt89gLupTkHnfJU gDQTB2SQg61L/cIT3CQvWpXrGcF3Trv+9oxDXecrUhLUrBUX82VqCIfO7ZGgD8mVxCYec6nW8 YvX1RUEsRL6TX7BOJsWBLE+KQYLhyzT7PF3RZVR4ZDy7H1qfTQ4x/e8IHC7A4J/XSq+l/Yvm/ nJiq5cE38Xfs4g2ZSd6E6KkwnrhKF3V6kBtbGo9tm6q/k9vPSdQpztGWhOnPfSVzlKtnThKcq e3+eYG8LsY92EBSZc2NxaIQchkh2Za1exyosCQ+2Q9blvdgUENxqY+vZG67JN5zeRbKTepb3m k9RR3oTOlE3vpQOgQ12FOYr3iQlrXpSCyZSPPtVH+B9s/Z5XeVFpbsBh89eHmEwxI5kytbnav aZvaoaNVMgjZz6oRaI+L1+dvCM3GMKrkC6CEpSBQSnlTwjiwdG6O+mnZJJ+KRVF2XgeJxjl/w hH3ofg6
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/58HI8pOOSiSN3rJ86fPG-JqVxn0>
Cc: draft-ietf-jsonbis-rfc7159bis.all@ietf.org, John Cowan <cowan@ccil.org>, ietf@ietf.org, secdir@ietf.org, "json@ietf.org" <json@ietf.org>, Benjamin Kaduk <kaduk@mit.edu>
Subject: Re: [Json] secdir review of draft-ietf-jsonbis-rfc7159bis-03
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.17
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: Sun, 12 Mar 2017 09:14:34 -0000

On 2017-03-12 10:06, Peter Cordell wrote:
> ...
>> This exact issue just came up in a media type review, where someone
>> specified a charset parameter because they weren't aware of this
>> algorithm.
>>
>> It would be very helpful to have this text in the RFC.
>
>
> Although it does need slightly more detail to take into account
> endian-ness in the case of UTF-16 and -32.
> ...

Does anybody recall why we removed 
<https://tools.ietf.org/html/rfc4627#section-3>:

> 3.  Encoding
>
>    JSON text SHALL be encoded in Unicode.  The default encoding is
>    UTF-8.
>
>    Since the first two characters of a JSON text will always be ASCII
>    characters [RFC0020], it is possible to determine whether an octet
>    stream is UTF-8, UTF-16 (BE or LE), or UTF-32 (BE or LE) by looking
>    at the pattern of nulls in the first four octets.
>
>            00 00 00 xx  UTF-32BE
>            00 xx 00 xx  UTF-16BE
>            xx 00 00 00  UTF-32LE
>            xx 00 xx 00  UTF-16LE
>            xx xx xx xx  UTF-8

?

Best regards, Julian