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#35219: 27.0.50; Problems with nnimap groups with non-ASCII characters Date: Sun, 14 Apr 2019 19:19:44 -0700 Message-ID: <87imvgnh6n.fsf@ericabrahamsen.net> References: <87ftqphjet.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="258453"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 35219@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 15 04:20:14 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 1hFrEB-00154t-Vo for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Apr 2019 04:20:12 +0200 Original-Received: from localhost ([127.0.0.1]:43479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFrEA-0001J4-Nj for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Apr 2019 22:20:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFrE4-0001Ix-61 for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 22:20:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFrE3-0000F5-6g for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 22:20:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48199) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hFrE2-0000Eo-N3 for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 22:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hFrE2-0002NK-AZ for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 22:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Apr 2019 02:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35219 X-GNU-PR-Package: emacs Original-Received: via spool by 35219-submit@debbugs.gnu.org id=B35219.15552947949112 (code B ref 35219); Mon, 15 Apr 2019 02:20:02 +0000 Original-Received: (at 35219) by debbugs.gnu.org; 15 Apr 2019 02:19:54 +0000 Original-Received: from localhost ([127.0.0.1]:33510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFrDt-0002Mu-Rl for submit@debbugs.gnu.org; Sun, 14 Apr 2019 22:19:54 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:52282 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFrDr-0002Mg-Qn for 35219@debbugs.gnu.org; Sun, 14 Apr 2019 22:19:52 -0400 Original-Received: from localhost (97-126-87-168.tukw.qwest.net [97.126.87.168]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id C299CFA05C; Mon, 15 Apr 2019 02:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ericabrahamsen.net; s=mail; t=1555294786; bh=jR7bjb1lC+zqb6d0dfhH7LEfX1qNmgbE1j7QcN43lTA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ATqPyV9l9kgYwoJehgVcsGYrLxRZ8BDyavIJAdsiKHKhS6e2J0WoQ5UQsXG4/kwa0 QByxecUdJjjVsPKZt20GvZq+0qLjCITl+ZdgCH5UrIYWvQLYveS2iSF8z1gJUUaPm2 /QNukjYcpcMwf2beH+QEIGnxuajDvx579/+QOcu4= In-Reply-To: <87ftqphjet.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 10 Apr 2019 10:14:34 -0700") 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:157648 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Eric Abrahamsen writes: > Lars Ingebrigtsen writes: > >> This started showing up yesterday after recent changes in Gnus: >> >> To reproduce: Create an nnimap group called "T=C3=A9st". Restarting Gnus >> will properly create the group "T=C3=A9st", but Gnus will also say >> >> nnimap read 12k from quimby.gnus.org (initial sync of 3 groups; please w= ait) >> >> If you then quit Gnus and restart Gnus, this group will appear: >> >> *: nnimap+quimby.gnus.org:T\351st >> >> If you try to kill it, all the groups in the buffer will disappear. >> >> So something went wrong during whatever the most recent group-related >> changes were. :-) > > Gaah... I've got a pile of tests in place for exactly this! Give me a > bit and I'll try to reproduce. Lars, would you give this a shot? I should only have been messing with encoding for group names that were coming from symbols. Thanks, Eric --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=group-encoding-fix.diff diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 2beb685822..606155d741 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el @@ -2146,14 +2146,14 @@ gnus-active-to-gnus-format (if (and (stringp (progn (setq group (read cur) group - (encode-coding-string - (cond ((numberp group) - (number-to-string group)) - ((symbolp group) - (symbol-name group)) - ((stringp group) - group)) - 'latin-1)))) + (cond ((numberp group) + (number-to-string group)) + ((symbolp group) + (encode-coding-string + (symbol-name group) + 'latin-1)) + ((stringp group) + group))))) (numberp (setq max (read cur))) (numberp (setq min (read cur))) (null (progn --=-=-=--