Re: [I18ndir] Review volunteer needed (Fwd: [dispatch] WGLC of draft-ietf-dispatch-javascript-mjs-07)

John R Levine <johnl@taugh.com> Thu, 30 April 2020 17:22 UTC

Return-Path: <johnl@taugh.com>
X-Original-To: i18ndir@ietfa.amsl.com
Delivered-To: i18ndir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 98D873A0D2A for <i18ndir@ietfa.amsl.com>; Thu, 30 Apr 2020 10:22:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1536-bit key) header.d=iecc.com header.b=JTn5/6r8; dkim=pass (1536-bit key) header.d=taugh.com header.b=OWqaODrI
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 nNzAzYAaeZz0 for <i18ndir@ietfa.amsl.com>; Thu, 30 Apr 2020 10:22:10 -0700 (PDT)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4754A3A0D22 for <i18ndir@ietf.org>; Thu, 30 Apr 2020 10:22:09 -0700 (PDT)
Received: (qmail 48645 invoked from network); 30 Apr 2020 17:22:08 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type:user-agent; s=be01.5eab0940.k2004; i=johnl-iecc.com@submit.iecc.com; bh=S+tBvCUqx7pnqhCdLnXB9pU65oWG28Q56sjL+BXeSYo=; b=JTn5/6r8LoFVhPy8FJaXrf2m/LsnFStUexBj8hMvAp+RcrekSX8ZJpKYMW1jX7S+BePYewWVyw14fzOj7OLNH5T4yV2n+lCIDEE04uN54qwW3NuVK3u3Nw50Pc/Waer2eD8tyBMPb+mN/UkcUyEdj1+RIDw9w0Wu70QPjZFD14Eqrv8p4FezD4+P4zGchjBZ8HQ5thg/vBrwTSqvXO//EqAFCJVgl2Mxx/Gw52o8FSAkc0syC0GXnGFoOH1I8cXJ
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type:user-agent; s=be01.5eab0940.k2004; olt=johnl-iecc.com@submit.iecc.com; bh=S+tBvCUqx7pnqhCdLnXB9pU65oWG28Q56sjL+BXeSYo=; b=OWqaODrIEF6N5I9OkDwRE0t0uSPUw6umBS+Qshw7JbNiWJc/DaXNzVBORjPACKcsCbu/pC/IO8WfPUkgPADeirWuWKwN3GXNwtE9rC2x9T9CuKv8fGEDjwGDslFMOLQYNv+Iy9SSLRZzLO4ss+pfbYmOD7GZdsjqPOM2cheG845fzUNMGON4EgpnCv1fBM+LjEpzbQyx9QwCs3sA+XvBnOlZLhSBQYRNeAcYOwI4iOsfsCh8P6MaKTntwvFh5tYl
Received: from localhost ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPSA (TLS1.3 ECDHE-RSA AES-256-GCM AEAD, johnl@iecc.com) via TCP6; 30 Apr 2020 17:22:08 -0000
Date: Thu, 30 Apr 2020 13:22:08 -0400
Message-ID: <alpine.OSX.2.22.407.2004301241440.26342@ary.qy>
From: John R Levine <johnl@taugh.com>
To: Pete Resnick <resnick@episteme.net>
Cc: i18ndir@ietf.org
In-Reply-To: <ACB0D0AB-2271-409D-A9A1-DFFD5A1AEE93@episteme.net>
References: <20200430014516.01551188B50A@ary.qy> <33a39102-0385-e235-1cdc-57cf6dad4f4b@ix.netcom.com> <7AD06F46449F354499AC2E24@PSB> <ACB0D0AB-2271-409D-A9A1-DFFD5A1AEE93@episteme.net>
User-Agent: Alpine 2.22 (OSX 407 2020-02-09)
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"; format="flowed"
Archived-At: <https://mailarchive.ietf.org/arch/msg/i18ndir/c8eJ8QEI41K3P-KDe-CvOaI6cQ0>
Subject: Re: [I18ndir] Review volunteer needed (Fwd: [dispatch] WGLC of draft-ietf-dispatch-javascript-mjs-07)
X-BeenThere: i18ndir@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Internationalization Directorate <i18ndir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/i18ndir>, <mailto:i18ndir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/i18ndir/>
List-Post: <mailto:i18ndir@ietf.org>
List-Help: <mailto:i18ndir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/i18ndir>, <mailto:i18ndir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 30 Apr 2020 17:22:13 -0000

> the WG to take some action? If I don't hear from anyone, I'll start accosting 
> people privately.

Nooo, not the Private Accosting.

Summary:

The i18n directorate has some concerns about character set handling in
draft-ietf-dispatch-javascript-mjs-07.

We understand it to say that if a javascript MIME element does not have a 
name that ends with .mjs, a consumer ignores the declared charset and 
looks at the first few bytes of the content for a byte order mark (BOM.) 
If it finds one, it uses the charset implied by the BOM, which can be 
UTF-16BE, UTF-16LE, or UTF-8.  If there's no BOM, it uses the declared 
charset unless there isn't one, in which case it defaults to UTF-8.

We are unaware of any other MIME type that uses this sort of trick to work 
around mislabelled content, and are concerned that it leads to failures in 
general MIME code that doesn't handle this special case.  We also don't 
know how important the workaround is in practice, e.g., how many MIME 
producers still mislabel UTF-16 as UTF-8 or vice versa.

For better interoperation it could say something like producers MUST put 
the correct charset on any media (same as any other media type) and that 
consumers SHOULD use the declared charset but MAY do the BOM trick for 
backward compatibility in certain cases.

It also says the BOM must be removed from the decoded text.  That's 
confusing since ECMAscript treats a BOM as a space which would be harmless 
at the start of a block of code.

Regards,
John Levine, johnl@taugh.com, Taughannock Networks, Trumansburg NY
Please consider the environment before reading this e-mail. https://jl.ly