From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: LdBeth Newsgroups: gmane.emacs.devel Subject: Re: Gnus; Restore multi encoding support for NNTP Date: Mon, 27 Dec 2021 21:58:41 +0800 Message-ID: References: <87wnjqb62b.fsf@gnus.org> <87sfueb3y1.fsf@gnus.org> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4723"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-apple-darwin18.7.0) MULE/6.0 (HANACHIRUSATO) Cc: Eric Abrahamsen , LdBeth , Emacs Devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 27 14:59:51 2021 Return-path: Envelope-to: ged-emacs-devel@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 1n1qXV-00015Z-O6 for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Dec 2021 14:59:50 +0100 Original-Received: from localhost ([::1]:54902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1qXU-0001s4-72 for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Dec 2021 08:59:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1qWr-00016D-8b for emacs-devel@gnu.org; Mon, 27 Dec 2021 08:59:10 -0500 Original-Received: from out162-62-57-137.mail.qq.com ([162.62.57.137]:37577) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1qWf-0006PP-1d for emacs-devel@gnu.org; Mon, 27 Dec 2021 08:59:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1640613527; bh=gRXImPwSI/9/c35O9VaMT5Ius2cpjlEeBMM7oYHOHdE=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=hxIVULlgxDmQ4dd4zhjZoBuA1XJoFghHcCLB7sK438gYpEci4qF/lZH8pYyWMzvRw lfjbjE6Ob3rc+4XcCD8QjZKlZTCJopJyFXcmuGCBcn37CnDIll2vTBWXfE0+QE64lv m0xeogmmUmsyRL0KudQrLa7gkX58VXHGiq7pTa2Q= Original-Received: from Costume-Party.local ([125.111.91.142]) by newxmesmtplogicsvrszb6.qq.com (NewEsmtp) with SMTP id EADA5C0B; Mon, 27 Dec 2021 21:58:45 +0800 X-QQ-mid: xmsmtpt1640613525t3z1v1755 X-QQ-XMAILINFO: OceG06SciBkCkYje2dBUbTjqR07BKhUfmTXhEmOAhQvaO14aZJl1SmzNyQ0zdj 1GqBksBpfVDDF2SCr84eSDqYTj6NnDm2Ewz25h2/SBvNDo1fNGRM2xSFEI60dGnTTd69jvd/Uu8I 6gB3a7lZDd9uH/ACtMSbv8NctW6+4r7VOMjx7nQi3BQk+etNdhg+6ecdZ2QiUx9a2KQ+lndWfWEr 99XNGQmPjHmQrPkav+8dfONL1d6gK4HW/ahrFy5o/WQrTLsn94mmbUYa5NRh8RQLUATqxOFE8zE5 cs9eTu116zYU1Sewpjdc0rMYQDj/OTTUnMUGOjB2W8yg7bQZJ/+Vm/VMOJO/anZr3vG6CnP0Yix/ 4KTqDSxJ6FxeLxsufj9rXBJAOufCOG4XRpiRTUTnw5+wKb6JYiH5ZtRXWPHoHVMoj2i7R5yNDKOU +uzEZld6Jbs6f8P2xKkKRhV48Xwwh0hmg60YcvbvFml0ITi6X9jKr7Z3oQaWdtPFDJFzHW6tRKCd HpuqA/9xSAvuznjnYYJIhFQ1POmJnmHB9rqAntFjWdyCoa5Z9Dy+lXeoWpul2pdO+Rhgb+BnrjzN uGLISwvRkauEecmIF64TejjtT0LsAjisrDJbdGFshc8As47AyfFxbkv9rVIYFpdE4jwAoBHMHeLY 8KIY6KwVgOhBzgXJsy3f9jrT7Fwubho5+L/zkLW6z6MqWiXMCYaLp9f4lCrVIwl+30N/lY6j1yXf YqAa7lGavE1/kkKaGwgoKr8salu1NTJVxO6d1v6NA26cVRlNhN1O3Ig6QD5fwnbvr3fF5E/qhfiU DuONQwEOz2tlhxZeFgyUQhQXn/KRY/bqFRlPV7Us Original-Received: by Costume-Party.local (Postfix, from userid 501) id 622E5203D47090; Mon, 27 Dec 2021 21:58:41 +0800 (CST) X-OQ-MSGID: In-Reply-To: <87sfueb3y1.fsf@gnus.org> X-Face: %[!P\u/BKFRGn_9h9|yO"ho?C0ej^LmM}WMb-`Jfj8OsS^^AKmHYGlD@^|7SEA3UzOGPFbB"OFczY?'\JtJ\lR'@&Y5j; s8{$&|3D>^i.U4l2h?1qpD.+{[$~j]vBeHZf^|BGyL8{/`4 X-Attribution: ldb Received-SPF: pass client-ip=162.62.57.137; envelope-from=andpuke@foxmail.com; helo=out162-62-57-137.mail.qq.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:283424 Archived-At: >>>>> In <87sfueb3y1.fsf@gnus.org> >>>>> Lars Ingebrigtsen wrote: Lars> LdBeth writes: ldb> That would only solve the problem displaying the groups list from ldb> server-mode, after Gnus saves the decoded group names in ~/.newsrc.eld ldb> and reads in from a new session, it would not able to correctly figure ldb> out the original group name from the starup screen group-mode. That is ldb> why a mapping is needed (and it needs to be saved with the ldb> .newsrc.eld file). Lars> It knows the coding system to use for that group name, so it can use Lars> that when encoding the name, too, surely? Probably you mean using the coding system in `gnus-group-name-charset-group-alist'? That won't work in certain case, say, there's a group name on a server is "nntp+news.newsfan.net:\346\265\213\350\257\225" (in UTF-8) while the rest group names on that server are in GBK, so I set ``` (setq gnus-group-name-charset-group-alist '(("\346\265\213\350\257\225" . utf-8) ("news\\.newsfan\\.net" . gbk))) ``` And it's not able to use that to correct encode the names. What's worse is when there are two group names having different coding systems decoded to the same UTF-8 string for the same server, if gnus doesn't correctly record which one uses which, well... (This is the reason for using charset string property for that) -- LDB