From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#60750: 29.0.60; encode-coding-char fails for utf-8-auto coding system Date: Thu, 12 Jan 2023 15:28:49 +0100 Message-ID: <87wn5resim.fsf@gmail.com> References: <87zgaof7cg.fsf@gmail.com> <83fscgaq6j.fsf@gnu.org> <871qnzg94y.fsf@gmail.com> <83bkn3c0iw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38178"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60750@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 12 15:35:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pFyfr-0009VJ-0v for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Jan 2023 15:35:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFyZk-0000Ns-5C; Thu, 12 Jan 2023 09:29:04 -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 1pFyZj-0000N4-4H for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 09:29:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFyZi-0001tE-S7 for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 09:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pFyZi-0002zR-OE for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 09:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jan 2023 14:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60750 X-GNU-PR-Package: emacs Original-Received: via spool by 60750-submit@debbugs.gnu.org id=B60750.167353373811476 (code B ref 60750); Thu, 12 Jan 2023 14:29:02 +0000 Original-Received: (at 60750) by debbugs.gnu.org; 12 Jan 2023 14:28:58 +0000 Original-Received: from localhost ([127.0.0.1]:45088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFyZe-0002z2-6A for submit@debbugs.gnu.org; Thu, 12 Jan 2023 09:28:58 -0500 Original-Received: from mail-wm1-f44.google.com ([209.85.128.44]:42956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFyZc-0002yd-Gw for 60750@debbugs.gnu.org; Thu, 12 Jan 2023 09:28:56 -0500 Original-Received: by mail-wm1-f44.google.com with SMTP id i17-20020a05600c355100b003d99434b1cfso15202294wmq.1 for <60750@debbugs.gnu.org>; Thu, 12 Jan 2023 06:28:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=W8yg+6j6uiBEthOPgmL4gcYC/E5eIRLMgAHRVxs28pA=; b=QoX6xROFeWxV7aJdozKwxgYex+l2wME8GNDe4bBg0PkitvBUO/a4h063taKv6joh2z SZAugWKMUg9a8PJV+llODsdhLa3v5KMoEMhG5KZzvYG2DRrQNHA/lXZ1gkglM3L76qQY VrDh5hLv4lmDzxldCXWZ/eYQIR+fODsqoTV+M0vrQs3o96LUm76oIB+/A55zZDsQuHAb KmYcpyh0B8b4h/eFJfkAG+kQIuW+4aOs2Aa0GMxW75C8stnTl8WcjIdYtCiNm476oX1B mEsOYA/TChy44BGGohQmD6hwoNRYW5zytN2mSsY98Ph7K9b8s+6B6VR5+VFXJDynosnT JtAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W8yg+6j6uiBEthOPgmL4gcYC/E5eIRLMgAHRVxs28pA=; b=upIWe8IWnerQKteCjrxsz6zpEpgyiFozPCf9txzyFzJJBjJYb0ab0ROQL5KMjHPwoW bASnWxeCwjSJxIXhFEtKXRJoqSHK0FOSYrqCHT5LDMZZw9iCHfDVs1xSzvK+BEOPONHh 95jPiEJeN++oufUkCzkXZJt+e1fuDuCPtjjBp6gofpa7FuEC9RMAjX1hAEGD59BQfyEs 7WrXxDEFgVFqbJLlSRo7NoZ9yZa0ARCLh5n/BVcQwYOG6xeOerfOAXHKvOEPV3jchCOu FdOCYCPIKUNe17yoUi7keELKcMEEw+2US7czJqOq/UXZ1/XHk1EhGcFp72hfq2tdPV4o vKpA== X-Gm-Message-State: AFqh2krYNWzxkURJbEjYdqX0YZCOfE0QWVUv7UbtdvVR4QHq/10yGTxQ pNXG6cwY2c+FnsZA0JwjWwEKLllUkVw= X-Google-Smtp-Source: AMrXdXve1gXsQFA7kEgG6o7cdiHnpzoHL7h27uVm3h+p8TkRMoNZkJo2LUTHsue5LUK4JfUA2P4cTA== X-Received: by 2002:a1c:790a:0:b0:3d6:b691:b814 with SMTP id l10-20020a1c790a000000b003d6b691b814mr55231100wme.1.1673533730220; Thu, 12 Jan 2023 06:28:50 -0800 (PST) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id iv14-20020a05600c548e00b003b47b80cec3sm30761584wmb.42.2023.01.12.06.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 06:28:49 -0800 (PST) In-Reply-To: <83bkn3c0iw.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 12 Jan 2023 16:04:07 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253227 Archived-At: >>>>> On Thu, 12 Jan 2023 16:04:07 +0200, Eli Zaretskii said: >> From: Robert Pluim >> Cc: 60750@debbugs.gnu.org >> Date: Thu, 12 Jan 2023 14:44:29 +0100 >>=20 >> One minor nit, the description for ':endian' says: >>=20 >> `:endian' >>=20 >> VALUE must be `big' or `little' specifying big-endian and >> little-endian respectively. The default value is `big'. >>=20 >> This attribute is meaningful only when `:coding-type' is `utf-16'. >>=20 >> That last sentence seems untrue, as ':endian' is meaningful for >> 'utf-8-auto' Eli> That depends on what you mean by "meaningful". What it wants to s= ay Eli> is that it's meaningless to change the value of this property for = any Eli> coding-system other than UTF-16. OK Eli> Who does set utf-8-auto? where did you originally bump into this? Eli> This is an obscure coding-system, and the fix to make it work as Eli> documented will produce an incompatible change in behavior. So be= fore Eli> I decide whether to make the change and on what branch, I'd like to Eli> know how in the world did you encounter this. >>=20 >> It=CA=BCs entirely my own fault: >>=20 >> The file where I noticed this is shared between a GNU/Linux and a >> macOS machine, which means I foolishly added the following a year ag= o, >> even though it=CA=BCs unnecessary (perhaps I was thinking I was goin= g to be >> sharing it with a Windows machine?): >>=20 >> ;; -*- lexical-binding: t; coding: utf-8-auto; -*- Eli> So you thought the "-auto" part was about the EOL format? yes. I=CA=BCm having a reading incomprehension day, obviously (just like a year ago when I made the change originally). >> I think that means we can leave the code as it is. Eli> ??? "As it is" means this coding-system behaves contrary to Eli> documentation: it should produce BOM on encoding. Leaving it as is Eli> doesn't sound TRT, so I'd like to have this fixed. From your Eli> description, it sounds like you bumped into this by mistake, and I= see Eli> only one other use of it -- in the test suite. So I'm inclined to Eli> installing this on the emacs-29 release branch. Oh, I thought you were proposing *not* to fix it at all, since it=CA=BCs such an obscure coding system. I have no opinion on where a fix should go: I=CA=BCm not going to be using that coding system again. Robert --=20