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

John R Levine <johnl@taugh.com> Fri, 01 May 2020 00:52 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 37D2E3A1768 for <i18ndir@ietfa.amsl.com>; Thu, 30 Apr 2020 17:52:52 -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=Uw+fDD2/; dkim=pass (1536-bit key) header.d=taugh.com header.b=aObsOfzR
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 aLvzEBCY5-Km for <i18ndir@ietfa.amsl.com>; Thu, 30 Apr 2020 17:52:50 -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 2337C3A1765 for <i18ndir@ietf.org>; Thu, 30 Apr 2020 17:52:49 -0700 (PDT)
Received: (qmail 14141 invoked from network); 1 May 2020 00:52:48 -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=373a.5eab72e0.k2004; i=johnl-iecc.com@submit.iecc.com; bh=ECrfNZ8iDzdleuYt+a1tZe6DNJooWSkndqmLmApn7+o=; b=Uw+fDD2/CjDbnQE4Te6+8CBaVJcN/esZpSHtSGxSTPCCkSW6ip9ydEdid+/yClj/4iI4kx+hJplR+TbWQN5Kb5jLZoJ31VJOPsIYJ0nUv8z8kPGymBDfnzoIIlZoqLHAmcyc81w5lkm7n8Bf9rA0FibLEKmup5qOWwloOH/leAEV76+6844lH24DFPqMRgUZ0Ap5D/jMSIw8EkGBWWGNsH+9F7OTkaQV9jwCzfblCCjG+RvmcDIMPDZ8x0B1yNw9
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=373a.5eab72e0.k2004; olt=johnl-iecc.com@submit.iecc.com; bh=ECrfNZ8iDzdleuYt+a1tZe6DNJooWSkndqmLmApn7+o=; b=aObsOfzRh5I4RaET+nRiH04cM/jD+SM4z/sxCvRCYEvaNpmb2loXS6K8OSXpUjIJgrmgMzVqGbFv0OTJGnoyYBWCu7itbAS2xnojBk39iESPcOstxpakSJTvmu00YXAWUGmRdyumtK2BJPNCc8Qm3/fKpz1M2xIx1xSvXPY0NDJabcEcDPlqLuZM9wrfZmMmg/Lmc1HMFrDjD0wnlvt75KicdetTutV7j0vQ8hZC58k93IGHto/l0XIVwpCdQkMW
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; 01 May 2020 00:52:48 -0000
Date: Thu, 30 Apr 2020 20:52:48 -0400
Message-ID: <alpine.OSX.2.22.407.2004302039080.28451@ary.qy>
From: John R Levine <johnl@taugh.com>
To: Pete Resnick <resnick@episteme.net>
Cc: i18ndir@ietf.org, John R Levine <johnl@taugh.com>
In-Reply-To: <0C7783A5-831D-4704-96ED-21D3FD374743@episteme.net>
References: <20200430014516.01551188B50A@ary.qy> <33a39102-0385-e235-1cdc-57cf6dad4f4b@ix.netcom.com> <7AD06F46449F354499AC2E24@PSB> <ACB0D0AB-2271-409D-A9A1-DFFD5A1AEE93@episteme.net> <alpine.OSX.2.22.407.2004301241440.26342@ary.qy> <8CE808C7-DF4F-45A9-9C17-2D82A8B78A9E@episteme.net> <477C5A18357719590D6336D9@PSB> <0C7783A5-831D-4704-96ED-21D3FD374743@episteme.net>
User-Agent: Alpine 2.22 (OSX 407 2020-02-09)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="0-475174599-1588294368=:28451"
Archived-At: <https://mailarchive.ietf.org/arch/msg/i18ndir/_QuCiAYE94gqfKqBjTCm4LLXXXA>
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: Fri, 01 May 2020 00:52:52 -0000

> First, the draft registers .mjs, but the only thing it says about it is that 
> environments that use file extensions will treat .mjs to mean it is a module. 
> It has no normative text claiming that in a MIME contexts it should be used 
> as a classifier. Second, .mjs is not a carryover from 4329. It is true that 
> .js is a carryover, but the only place it appears is in the MIME registration 
> for the file extension associated with the MIME type. I don't see that as 
> problematic.

The whole distinction between a script and a module is a crock. 
Attempting to decode their strange language, it appears that a js script 
and a js module have minor syntactic differences (that's the "goal" bit) 
which presumably matter to the application consuming the text.  But that's 
no business of MIME handling.  I could have a MIME part tagged text/html 
that was in fact a Fortran program, and while it would make an application 
looking for HTML unhappy, it's a perfectly good MIME.

>> to do is to (i) allow the charset parameter but make it optional
>> and specifically provide that it is to be ignored if present ...

> I suspect there is some HTTP behavior assumption in here. But I think your 
> first sentence is correct; that should probably be labeled as "Not an i18n 
> issue, but this is Not Good ™."

I'm wondering if the BOM hack is an ancient workaround for bugs in some 
server in the 1990s that gave you UTF-16 regardless of what you asked for, 
perhaps early versions of IIS. I hope no living web server is still that 
broken.

>> What is even more troublesome is that they could rather easily
>> dig themselves out of most (sadly, not all) of this mess by, as
>> Asmus more or less put it, joining the 21st century.

Yup.

>> (ii) For Script goal sources, a charset parameter MUST be
>> specified and MUST be one of "UTF-8", "UTF-16BE", or "UTF-16LE".
>> If it is omitted, the receiving system MAY dig itself into as
>> deep a whole as it prefers, possibly using BOM heuristics if
>> there is an explicit "MUST use Unicode" requirements for Script
>> goals.

Once again, I think that importing the semantic difference between js 
modules and scripts into MIME is a mistake.  It's OK to have .mjs as a 
hint about what it's intended to be, but not to make that affect the MIME 
processing.

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