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: Mon, 29 Apr 2019 18:41:41 +0300 Message-ID: <835zqwu8cq.fsf@gnu.org> References: <878sw1995f.fsf@ericabrahamsen.net> <87sgu87ayo.fsf@ericabrahamsen.net> <87k1fj49o2.fsf@ericabrahamsen.net> <87bm0uhxqy.fsf@ericabrahamsen.net> <87d0l5ihgr.fsf@ericabrahamsen.net> <878svtihdw.fsf@ericabrahamsen.net> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="175200"; mail-complaints-to="usenet@blaine.gmane.org" Cc: yamaoka@jpl.org, 35383@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 29 17:42:13 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 1hL8Q1-000jPe-0I for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Apr 2019 17:42:13 +0200 Original-Received: from localhost ([127.0.0.1]:59445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL8Q0-0002x7-1I for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Apr 2019 11:42:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL8Pt-0002wy-VS for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hL8Ps-0002Y7-Gp for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:42:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54231) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hL8Pp-0002Wl-Sy for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:42:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hL8Pp-0006Ci-MQ for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Apr 2019 15:42:01 +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.155655251923839 (code B ref 35383); Mon, 29 Apr 2019 15:42:01 +0000 Original-Received: (at 35383) by debbugs.gnu.org; 29 Apr 2019 15:41:59 +0000 Original-Received: from localhost ([127.0.0.1]:39542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL8Pn-0006CQ-1Y for submit@debbugs.gnu.org; Mon, 29 Apr 2019 11:41:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL8Pl-0006CF-Ps for 35383@debbugs.gnu.org; Mon, 29 Apr 2019 11:41:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL8Pf-0002PV-Nf; Mon, 29 Apr 2019 11:41:52 -0400 Original-Received: from [176.228.60.248] (port=3195 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hL8Pe-0007qQ-71; Mon, 29 Apr 2019 11:41:50 -0400 In-reply-to: <878svtihdw.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Sun, 28 Apr 2019 21:07:23 -0700) 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:158432 Archived-At: > From: Eric Abrahamsen > Date: Sun, 28 Apr 2019 21:07:23 -0700 > Cc: 35383@debbugs.gnu.org > > > The goal is to have Gnus default to writing its active files in > > 'utf-8-emacs, unless the user has specifically requested otherwise. > > `nnmail-active-file-coding-system' governs the "mail" type servers, and > > `gnus-agent-file-coding-system' governs the agent. Currently those two > > options default to 'raw-text, we'd like them to default to 'utf-8-emacs. > > Actually, maybe that's wrong. We don't care how the files are written, > only that, after parsing, the group names are successfully _decoded_ to > 'utf-8-emacs. Maybe I'm trying too hard? When you decode _any_ text by _any_ coding-system, the result is _always_ utf-8-emacs, because utf-8-emacs is the internal representation of characters and raw bytes in Emacs buffers and strings. We write text out as utf-8-emacs when we don't want to risk the danger of decoding incorrectly due to local customizations and language environments. Text encoded in utf-8-emacs can by definition represent _any_ character and raw byte that Emacs can read, and the "decoding" in this case is trivial. So no, you are not trying too hard, not IMO.