From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#39026: 27.0.50; gnus-group-decoded-name needs running gnus Date: Tue, 14 Jan 2020 14:54:43 -0800 Message-ID: <87ftghlkcs.fsf@ericabrahamsen.net> References: <871rsaoe9u.fsf@aia00054aia.gr> <87woa1bw9q.fsf@ericabrahamsen.net> <874kwz6pnh.fsf@aia00054aia.gr> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="221492"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 39026-done@debbugs.gnu.org, 39026@debbugs.gnu.org To: Deus Max Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 14 23:55:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1irV5j-000v2v-Jh for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jan 2020 23:55:19 +0100 Original-Received: from localhost ([::1]:46906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irV5i-0008Mz-5E for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jan 2020 17:55:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48633) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irV5T-0008Mr-Ps for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2020 17:55:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irV5S-0003pe-GU for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2020 17:55:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56127) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1irV5S-0003p6-Dy for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2020 17:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1irV5S-0002qm-DE for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2020 17:55:02 -0500 Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jan 2020 22:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 39026 X-GNU-PR-Package: emacs Mail-Followup-To: 39026@debbugs.gnu.org, eric@ericabrahamsen.net, deusmax@gmx.com Original-Received: via spool by 39026-done@debbugs.gnu.org id=D39026.157904249210922 (code D ref 39026); Tue, 14 Jan 2020 22:55:02 +0000 Original-Received: (at 39026-done) by debbugs.gnu.org; 14 Jan 2020 22:54:52 +0000 Original-Received: from localhost ([127.0.0.1]:33864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1irV5H-0002q4-US for submit@debbugs.gnu.org; Tue, 14 Jan 2020 17:54:52 -0500 Original-Received: from ericabrahamsen.net ([52.70.2.18]:34394 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1irV5G-0002pp-0a; Tue, 14 Jan 2020 17:54:51 -0500 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 5EA09FA080; Tue, 14 Jan 2020 22:54:44 +0000 (UTC) In-Reply-To: <874kwz6pnh.fsf@aia00054aia.gr> (Deus Max's message of "Mon, 13 Jan 2020 22:57:06 +0200") 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174585 Archived-At: On 01/13/20 22:57 PM, Deus Max wrote: > On Mon, Jan 13 2020, Eric Abrahamsen wrote: > >> >> Yeah, to be honest, I don't really know the point of the >> gnus-group-name-charset-* stuff, and am mostly unwilling to mess with >> anything I don't really understand. But if those variables have been >> set, we'd need to know a group's method, and it really isn't possible to >> get a group's method for sure unless Gnus is up and running. >> >> In fact, I suspect we could simply dump all the group-name-charset/group >> decoding stuff, stop encoding/decoding altogether, but I don't know how >> I would prove that wouldn't cause problems. >> >> Can you just not use gnus-group-decoded-name? As I mentioned, decoding >> as 'utf-8-emacs should work fine. >> >> Eric > > Yes, I agree with you and will take your advice. > Thanks for discussing the issue. > > For my needs, I will just replace gnus-group-name-decode with: > > #+begin_src emacs-lisp > (defun gnus-recent-decode-utf8 (string &optional charset) > "Decode a gnus-group name. > Replaces `gnus-group-name-decode' for decoding group names. > Default utf-8-emacs CHARSET unless provided otherwise." > (decode-coding-string string (or charset 'utf-8-emacs) t)) > #+end_src That looks fine to me. Sorry I don't have a more definitive solution for this. > I guess you may close the bug. Done.