From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] * etc/NEWS: Announce addition of BOM to utf-8-auto Date: Sun, 29 Jan 2023 20:29:19 +0200 Message-ID: <837cx56vpc.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="925"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tom Gillespie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 29 19:30:14 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMCRR-000Aau-RO for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Jan 2023 19:30:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMCQo-0002Jj-9o; Sun, 29 Jan 2023 13:29:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMCQl-0002JU-3A for emacs-devel@gnu.org; Sun, 29 Jan 2023 13:29:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMCQk-0006d1-Ix; Sun, 29 Jan 2023 13:29:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=CdZw4cJ/Orb79JhLL7CG/mghnoIWZkTW7HOyPxygK6Q=; b=cWQWgde2F0lxX1U0rDTP voRXwE5N4FY/fqRmqKRcu3cC+PtMdDnxvWDq3miroSuv8Yoz/q66v8KTDlioLyW/+hh+/IbcRi8iB 3Kv+mdW26/vaia8ZmKoxkI9rAvX/YOJr+N8UELd7IS6j1Qu6MU/1G21HeQ/gPb/7n3GpJuJx1CKMj e9VaioY4eAXwQAqRHtZHhb00r6q0lUge5F7xMfpXfWooMS1263YBdgCyeZByJMQndEGZWC5xvZG5N hYoC2lhl6GP1rr34Ouc6oX5N3Vd+k77jkMVBCd8b0XJci23drF7FKfkCH2uMgRRta70nTJo7+QrSd 3Nh54pinz2uboA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMCQj-0003Uu-3F; Sun, 29 Jan 2023 13:29:29 -0500 In-Reply-To: (message from Tom Gillespie on Sun, 29 Jan 2023 12:58:38 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302754 Archived-At: > From: Tom Gillespie > Date: Sun, 29 Jan 2023 12:58:38 -0500 > > --- a/etc/NEWS > +++ b/etc/NEWS > @@ -563,6 +563,9 @@ The variable 'font-lock-support-mode' is occasionally useful for > debugging purposes. It is now a regular variable (instead of a user > option) and can be set to nil to disable Just-in-time Lock mode. > > +** The 'utf-8-auto' coding-system now includes a byte order mark This is inaccurate: the change is only on encoding, and saying that a coding-system "includes" a BOM is confusing English, IMO. More importantly, it was a bugfix. utf-8-auto was previously behaving contrary to the documentation: ‘:bom’ This attributes specifies whether the coding system uses a "byte order mark". VALUE must be nil, t, or a cons cell of coding systems whose ‘:coding-type’ is ‘utf-16’ or ‘utf-8’. [...] If the value is a cons cell, on decoding, check the first two bytes. If they are 0xFE 0xFF, use the car part coding system of the value. If they are 0xFF 0xFE, use the cdr part coding system of the value. Otherwise, treat them as bytes for a normal character. On encoding, produce BOM bytes according to the value of ‘:endian’. Note the last sentence. We don't announce bugfixes in NEWS, mainly because doing so would make an already large file many times larger.