From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#35383: 27.0.50; Complete process of decoding Gnus group names Date: Fri, 26 Apr 2019 13:55:19 +0300 Message-ID: <8336m5xch4.fsf@gnu.org> References: <878sw1995f.fsf@ericabrahamsen.net> <87sgu87ayo.fsf@ericabrahamsen.net> <87k1fj49o2.fsf@ericabrahamsen.net> <87bm0uhxqy.fsf@ericabrahamsen.net> <83ftq5xnoh.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="65020"; mail-complaints-to="usenet@blaine.gmane.org" Cc: eric@ericabrahamsen.net, 35383@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 26 12:56:42 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJyX4-000Gm2-9U for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Apr 2019 12:56:42 +0200 Original-Received: from localhost ([127.0.0.1]:44756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJyX3-00058U-AH for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Apr 2019 06:56:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJyWU-0004tg-PM for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2019 06:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJyWS-0006od-J7 for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2019 06:56:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46606) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJyWR-0006nX-2V for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2019 06:56:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hJyWQ-0004gA-8v for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2019 06:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Apr 2019 10:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35383 X-GNU-PR-Package: emacs Original-Received: via spool by 35383-submit@debbugs.gnu.org id=B35383.155627614817965 (code B ref 35383); Fri, 26 Apr 2019 10:56:02 +0000 Original-Received: (at 35383) by debbugs.gnu.org; 26 Apr 2019 10:55:48 +0000 Original-Received: from localhost ([127.0.0.1]:60150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJyWB-0004fh-Uu for submit@debbugs.gnu.org; Fri, 26 Apr 2019 06:55:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJyW9-0004fV-RP for 35383@debbugs.gnu.org; Fri, 26 Apr 2019 06:55:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJyW3-0006Us-Hm; Fri, 26 Apr 2019 06:55:39 -0400 Original-Received: from [176.228.60.248] (port=4720 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hJyW1-0004DC-SW; Fri, 26 Apr 2019 06:55:39 -0400 In-reply-to: (message from Katsumi Yamaoka on Fri, 26 Apr 2019 17:08:24 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158281 Archived-At: > Date: Fri, 26 Apr 2019 17:08:24 +0900 > From: Katsumi Yamaoka > Cc: eric@ericabrahamsen.net, 35383@debbugs.gnu.org > > > It is not unnecessary, because that file could be visited normally in > > Emacs. So even if you have to bind coding-system-for-read for some > > reason (and I admit I don't understand the reasons very well, and in > > particular this will not affect 'read' or any other primitive that > > is supposed to be reading from an already decoded buffer/string), > > there are still valid reasons to have the cookie in the file. > > Well, I don't know why the active files need a coding cookie, but > what adds it is `gnus-write-active-file' that only gnus-agent and > gnus-cache use; `nnmail-save-active' that many mail back ends use > does not add a coding cookie. Even so, I have no trouble with my > nnml active file that contains non-ASCII group names. The file > is utf-8 encoded and it is Emacs' default (IIUC), so I cannot > think any reason why the cookie is required. You are probably in a UTF-8 locale, so your defaults facilitate detecting the right encoding. In non-UTF-8 locales this might not be that easy, Emacs could guess wrong. More importantly, utf-8-emacs and utf-8 are not the same, the differences are subtle, but they do exist. We use utf-8-emacs for anything that should support any character representable inside Emacs buffers and strings, so using it here seems correct. But if someone wants to visit this file with "C-x C-f", e.g., to manually fix something there, they should be able to do that without risking incorrect decoding. So I think the cookie should stay, especially as it can never do any harm in this context, AFAIU.