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

Pete Resnick <> Thu, 30 April 2020 17:30 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 3C0573A03F6 for <>; Thu, 30 Apr 2020 10:30:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 3bzrvabS6nxO for <>; Thu, 30 Apr 2020 10:30:32 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 80F253A0D88 for <>; Thu, 30 Apr 2020 10:30:32 -0700 (PDT)
Received: from localhost (localhost []) by (Postfix) with ESMTP id 2BB9EAAF7518; Thu, 30 Apr 2020 12:30:28 -0500 (CDT)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 6eDhjpdjm-em; Thu, 30 Apr 2020 12:30:26 -0500 (CDT)
Received: from [] ( []) by (Postfix) with ESMTPSA id 6D608AAF74FE; Thu, 30 Apr 2020 12:30:26 -0500 (CDT)
From: "Pete Resnick" <>
To: "John R Levine" <>
Date: Thu, 30 Apr 2020 12:30:26 -0500
X-Mailer: MailMate (1.13.1r5683)
Message-ID: <>
In-Reply-To: <alpine.OSX.2.22.407.2004301241440.26342@ary.qy>
References: <20200430014516.01551188B50A@ary.qy> <> <7AD06F46449F354499AC2E24@PSB> <> <alpine.OSX.2.22.407.2004301241440.26342@ary.qy>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; markup=markdown
Archived-At: <>
Subject: Re: [I18ndir] Review volunteer needed (Fwd: [dispatch] WGLC of draft-ietf-dispatch-javascript-mjs-07)
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Internationalization Directorate <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Thu, 30 Apr 2020 17:30:40 -0000

On 30 Apr 2020, at 12:22, John R Levine wrote:

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

Obviously you have never experienced my full-out 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.

Thanks for taking up the pen John. If folks think something needs to be 
elaborated or added, or if you have some wordsmithing, do speak up.

I'll check with Barry whether he wants this on the official review form. 
If so, I'll assign the review to you in the datatracker. Otherwise, you 
can just email the dispatch list and sign it "John, stuckee for the 
directorate" or some such.

Pete Resnick
All connections to the world are tenuous at best