From unknown Tue Jun 17 01:50:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52792: 27.2; please don't hardcode utf-8 when fetching group list Resent-From: LdBeth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 25 Dec 2021 16:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52792 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: 52792@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164044923422201 (code B ref -1); Sat, 25 Dec 2021 16:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Dec 2021 16:20:34 +0000 Received: from localhost ([127.0.0.1]:39736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n19mb-0005m1-VO for submit@debbugs.gnu.org; Sat, 25 Dec 2021 11:20:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:47832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n19mW-0005lm-T3 for submit@debbugs.gnu.org; Sat, 25 Dec 2021 11:20:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n19mW-0002gv-F1 for bug-gnu-emacs@gnu.org; Sat, 25 Dec 2021 11:20:28 -0500 Received: from out162-62-57-210.mail.qq.com ([162.62.57.210]:45785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n19mR-0005Ud-JR for bug-gnu-emacs@gnu.org; Sat, 25 Dec 2021 11:20:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1640449214; bh=CRJkGuBgja8bfbG/wV2JNm5cZkOFdhQw19aMqKsHhxg=; h=Date:From:To:Subject; b=omejREaitd9MMTDt1PB+47YvFg32F9K1+yERGF3pDFIlUsh/s4jxKPjknnt8SBAuR coC+LylYbvfoSWmH1uJ7iI6og6QueX/zSdda70fZ5VGopFACJOSjqrSnsn/6NOyWAV fFA9fbzIELB5bFewKK9w/3qkVD4hORacTbkPsXeI= Received: from Costume-Party.local ([125.111.91.142]) by newxmesmtplogicsvrsza9.qq.com (NewEsmtp) with SMTP id 4C5A3C96; Sun, 26 Dec 2021 00:19:05 +0800 X-QQ-mid: xmsmtpt1640449145tj8whqzzs Message-ID: X-QQ-XMAILINFO: M5aCtjAndv5OmZQz31iTPXyXnAvaPutrBtFlmBuqSW+ElvS1E/5VlmDD1mTuZq RV+So92TddfdWp7H1rw5wE7cu9htUXSYr/0/CrnuMMpuckATqOrV2OQCWkpJGkZw5kHCyGegJC3N 6uhv6lJw+dG3AoKnzX3tNGEEvofwcjl+TIXbYVi12Eq9w2YRghOhfAKIFXBZPdO1A18mU17LVuD2 AaUb9YxPBEVWBEIfl8H9xyM+SemFpg3QK6EL+M2iI8Knbgr54wSdlfJo5D5OOQyCxx9+JIEN7SQn 5olq+QXqHizoq42hg5mPP1366rjhZHZ8jUo03sr6sc+6DnRGfjg8n0bcP56jlZXKeqkN4RcKk6nq zYZDWxKhXRu/OE/iB/Uux9cJDkmthcrUT8xOaC6ES3beQit0Mf7aY5bGJucOltfgBwwQ150Utvcj KWZ9np1Mvfqj+NXT1G1TgHVwWumX2mBynNOUlcYP+KVm9uvFBplHN9YwE1KsfdGxxI/Pc8UTPd4l BW+u43dYh5xPiVq5TM+Gm+8OZC4qONuwJa+3G+rOd1Re8lAxoR/85vJmcBEuYTigD2CP+qfYxivB QBZar30wkH+dpJ9proo943Ja7r1LhnuCD16lSI61Luz+D1GJhAETt8dqs1+k525S+tIJCfVwwYaX M711IbLmbFhWSqsRRg0pYHQPHRkCSEtnMMhWstjRsYOD3FP5kbbwX+U1q4fSHLFIRXHehvGfM6mk +PbLsaQpkeiT9ZhZeLSqTyXlz0r+UsYJ5ywNj/vycYNeVbeGSBqqLdRRJkEkCbjJFFKzjUV3UrjJ PWGkz2zFm1Drpmfnam3n1K0lSn/8IJ0YN9+tVEyAPM8Eg0vESXZm6R Received: by Costume-Party.local (Postfix, from userid 501) id 52910203D38617; Sun, 26 Dec 2021 00:19:04 +0800 (CST) Date: Sun, 26 Dec 2021 00:19:03 +0800 X-OQ-MSGID: From: LdBeth User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-apple-darwin18.7.0) MULE/6.0 (HANACHIRUSATO) 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 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Received-SPF: pass client-ip=162.62.57.210; envelope-from=andpuke@foxmail.com; helo=out162-62-57-210.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, TO_NO_BRKTS_DYNIP=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.0 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) The problematic code is located at gnus-srvr.el, `gnus-browse-foreign-server' in commit cb12a84f2c519a48dd87453c925e3bc36d9944db, that hard codes `utf-8-emacs' for group lists. That would cause problems for NNTP servers that are still not using utf-8, which is common among some Chinese servers that widely uses gbk coding. It would render group subscription unusable when `gnus-group-name-charset-group-alist' has been setup to translate the group names, because Gnus would think the translated group names different from the wrongly decoded group name fetched from the server. I propose for reverting the removal of group name encoding, although I didn't fully understand the reason for that commit. Or at least, consider add a method to set the encoding for particular server, to work around this problem. -- LDB From unknown Tue Jun 17 01:50:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52792: 27.2; please don't hardcode utf-8 when fetching group list References: In-Reply-To: Resent-From: LdBeth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 26 Dec 2021 02:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52792 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: 52792@debbugs.gnu.org Received: via spool by 52792-submit@debbugs.gnu.org id=B52792.164048406323459 (code B ref 52792); Sun, 26 Dec 2021 02:02:01 +0000 Received: (at 52792) by debbugs.gnu.org; 26 Dec 2021 02:01:03 +0000 Received: from localhost ([127.0.0.1]:40079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1IqL-00066H-Qv for submit@debbugs.gnu.org; Sat, 25 Dec 2021 21:01:03 -0500 Received: from out203-205-251-80.mail.qq.com ([203.205.251.80]:33210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1IqE-00065S-1I for 52792@debbugs.gnu.org; Sat, 25 Dec 2021 21:00:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1640484044; bh=2FQ3SJwN4XF39Z44o9ytxEVzhVJP5DpIne/GHst8Gfo=; h=Date:From:To:Subject; b=oiTzBdM36r5TlMkqCxZzBABBXwPrLQswjsHwjNA46HMhxOEo8867P8K+KI9nc7Bcl VpCWiaiFFtxlDGjh6NTipQtnpHm1SYauoO9HocmQW98Is0NsTGk38LYV4JFHIOm5FI 11D93A2Iu3PS5x9RzDomDIUvN1VAtqXYGN3ZA750= Received: from Costume-Party.local ([125.111.91.142]) by newxmesmtplogicsvrszc11.qq.com (NewEsmtp) with SMTP id 2B00EE5; Sun, 26 Dec 2021 10:00:43 +0800 X-QQ-mid: xmsmtpt1640484043tm5bqhbyw Message-ID: X-QQ-XMAILINFO: ODLdUNt2S+T/pHU7xoqF5qtjg4rWZJfQ33mbCrO9H2H7Do2RKDJg5bhSw9a59a 5jXP0nRc+MJeYGZAO9uHayjAltfNus0QqqA24M6PP6k/3oci57lyu3wAskvIZPM0g9CtFNAV2R0+ abao8I3BLeibtH5aQT8he2HyXaXMTjgjgywRODtycrDfAjzymjKRRjK/dq1y6d0Rhv99TxrTpR57 6OX1+JwoyI9sah2bFkTyKkvPk5jROn+O4f9USF2fVoQHNwC54CQaMnSYNCVp1NbGdLq2NJNfKTZH 6SZXkIJVBwkL4KXtrtFlMjTQlYrMvgHr0ZKQoBriYKgn/wXC6WwDL/ktlr/RK9ZtYDv0tg+R2cHM CvwH99WDv9pVrZ7vh+m+ZB/ITpbcmpdjJt8SskXHSwbx6P55iT3G4LnbwrEXtmPc8i1hcvBgIdDE XyQXuyGU0TIBMXQ7r6veAejnwnet1W5nRJ3FzKuQygS0Js/z1DJ+p3iACPE2Wq5Acv2kGh0i5Aud qBbBc6NYIG4VQi2++Yy/Z6YZHoCM0y8uRQZlkdaUp0crzDMLjcmtlNj5kPZwPTr/40kF79loHBCH yCRDCmi2NgAAylsjCvP5x6wjIrduMDFU751eJtvM+UgbRmseu+t0jQBLg5CME5BMWepKbrM0ySbS 8QFlRpEqeglICh9i+bVKymARazYthCVQSybIv04qDh8+zINnBNBYClFihiE3W3BRnybloXlMc6E2 do3iriw8tPerkCp7x/EtoqHDhCafW1gPXmhnPE6S4bLLLAk+x6ez7jwvzv27xWvoqt88/vbUcrAg TPROWUZrGlLz6hcxdjxV6V+QZfBZ4clXhXs8xpbsLVHS7ZpLuH5Trx/zj5gIfp53E= Received: by Costume-Party.local (Postfix, from userid 501) id D0C08203D39FC7; Sun, 26 Dec 2021 10:00:42 +0800 (CST) Date: Sun, 26 Dec 2021 10:00:42 +0800 X-OQ-MSGID: From: LdBeth User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-apple-darwin18.7.0) MULE/6.0 (HANACHIRUSATO) 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 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: multipart/mixed; boundary="Multipart_Sun_Dec_26_10:00:42_2021-1" X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This patch that reverts only related changes (and does nothing else) in cb12a84f2c519a48dd87453c925e3bc36d9944db should make Gnus works again for none utf-8 NNTP servers. --- gnus-srvr.el.old 2021-12-26 09:48:28.000000000 +0800 +++ gnus-srvr.el 2021-12-26 09:55:45.000000000 +0800 @@ -784, 13 +784, 11 @@ (while (not (eobp)) (ignore-errors (push (cons - (decode-coding-stri [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [203.205.251.80 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.251.80 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 T_SPF_TEMPERROR SPF: test of record failed (temperror) 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This patch that reverts only related changes (and does nothing else) in cb12a84f2c519a48dd87453c925e3bc36d9944db should make Gnus works again for none utf-8 NNTP servers. --- gnus-srvr.el.old 2021-12-26 09:48:28.000000000 +0800 +++ gnus-srvr.el 2021-12-26 09:55:45.000000000 +0800 @@ -784,13 +784,11 @@ (while (not (eobp)) (ignore-errors (push (cons - (decode-coding-stri [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [203.205.251.80 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.251.80 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --Multipart_Sun_Dec_26_10:00:42_2021-1 Content-Type: text/plain; charset=US-ASCII This patch that reverts only related changes (and does nothing else) in cb12a84f2c519a48dd87453c925e3bc36d9944db should make Gnus works again for none utf-8 NNTP servers. --Multipart_Sun_Dec_26_10:00:42_2021-1 Content-Type: text/plain; type=patch; name="revert.diff"; charset=US-ASCII Content-Disposition: attachment; filename="revert.diff" Content-Transfer-Encoding: 7bit --- gnus-srvr.el.old 2021-12-26 09:48:28.000000000 +0800 +++ gnus-srvr.el 2021-12-26 09:55:45.000000000 +0800 @@ -784,13 +784,11 @@ (while (not (eobp)) (ignore-errors (push (cons - (decode-coding-string (buffer-substring (point) (progn (skip-chars-forward "^ \t") (point))) - 'utf-8-emacs) (let ((last (read cur))) (cons (read cur) last))) groups)) @@ -798,7 +796,6 @@ (while (not (eobp)) (ignore-errors (push (cons - (decode-coding-string (if (eq (char-after) ?\") (read cur) (let ((p (point)) (name "")) @@ -811,7 +808,6 @@ (setq name (concat name (buffer-substring p (point))))) name)) - 'utf-8-emacs) (let ((last (read cur))) (cons (read cur) last))) groups)) @@ -863,7 +859,12 @@ ((= level gnus-level-zombie) ?Z) (t ?K))) (max 0 (- (1+ (cddr group)) (cadr group))) - name))) + ;; Don't decode if name is ASCII + (if (eq (detect-coding-string name t) 'undecided) + name + (decode-coding-string + name + (inline (gnus-group-name-charset method name))))))) (list 'gnus-group name) ))) (switch-to-buffer (current-buffer))) --Multipart_Sun_Dec_26_10:00:42_2021-1-- From unknown Tue Jun 17 01:50:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52792: 27.2; please don't hardcode utf-8 when fetching group list Resent-From: LdBeth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 26 Dec 2021 02:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52792 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: 52792@debbugs.gnu.org Received: via spool by 52792-submit@debbugs.gnu.org id=B52792.164048555826137 (code B ref 52792); Sun, 26 Dec 2021 02:26:01 +0000 Received: (at 52792) by debbugs.gnu.org; 26 Dec 2021 02:25:58 +0000 Received: from localhost ([127.0.0.1]:40085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1JEU-0006nV-0B for submit@debbugs.gnu.org; Sat, 25 Dec 2021 21:25:58 -0500 Received: from out203-205-221-153.mail.qq.com ([203.205.221.153]:44388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1JEO-0006n9-3K for 52792@debbugs.gnu.org; Sat, 25 Dec 2021 21:25:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1640485541; bh=eTOtYLcenY2t4VsjnHZ7Zfn1Gwb3UQDHs+Vp/48UB+s=; h=Date:From:To:Subject:In-Reply-To:References; b=T/anSZiPSujpGzzP8a6iflKOcdC4iuA52ADgCAB80qjerWSiR1hrq2c3IPnDyP37E yWH4sUg3zhWVpRWXA6O5Xl1WaRt8U5x9siKbUTY6zcjQwwO2ZfXEOJOidVrMkRXj56 5XzZ1rRdzUph9KuXH8PEhztzOo3/50Yz3aHCgx1I= Received: from Costume-Party.local ([125.111.91.142]) by newxmesmtplogicsvrszc9.qq.com (NewEsmtp) with SMTP id 66897C03; Sun, 26 Dec 2021 10:25:40 +0800 X-QQ-mid: xmsmtpt1640485540tyfecke88 Message-ID: X-QQ-XMAILINFO: Nw6Y/HeEb1MZYe9RPFRgOx2Qqfyxmhqygxj2mM1Wh56NPWbRIJ2Hld2S4dhnwJ PCWHKKRk7S9rIHUB+m/AVpQr9rKaFX8V6sG87Sx88ew36zt7OGySni7kclyoXlF88u2A4c94fAA3 CtKPK59u5bB6qUHjmNpPaS+iimA6GoCDnI7REzTLmcNFLRBP1h1HhpNK7gF4d9k+KQovdlT1bkrn fuZ3gFtPTbVYHIlo6LKgOnPnISmdQrdQfPCchTeCHdsSzxqS5RM7QTHecGVJkYNYpgbSJQ1/tErX N+djmPQrrIhmlQsDV4rhbM+/OZl/k33VDbylf5IUw65o9mjQP4zflGwgEZvdJ58Mqg6XqbvWeeP5 u1Uc9iFnRp9uc9gOiW7e532pv0h7d97EDb/CRDduVvv2YlPI9XYmvMSl0K1mceN3mWpX83lcWQKr vUoLDEmeXHzafVqcS5P6w1N4EMhpA12NjM/+Um6CAcUGURMfpk4KebG4bss6ircKk69nxavgDwsO 8GyK1/UmiYZGYAJigwNHp5uIi3J7mvCQDYANf65G15sNXrmxqdTDKlvCvtGTN8uqgF8D62FSK7og JW1d5ugiUSOl6iOHOI2htfMr2eJCWh3+wLBC/uOnS97sLp5qC8LyTjylJixWE3eX+vcBNSuN0yL/ rLFHS6WmoIGNbc3KW6tYu/QufGDToxg9fi4dH5I0Imoh2gF//TcppqggW0a05wuY1fYuXXs+NAli iOUk8E7mC6D2cnbegSiCc1vWYGUs+2wTGKuHP+KfuBU7D9PAOd+ldaV1LrlqrutDswsEqSmExtd9 5W8O9y/08XmmQINSJtUy2NTisXTJagkNJOT9z6hXbOGW3iGTYNFqI69//Qdfa+XF4= Received: by Costume-Party.local (Postfix, from userid 501) id 7CD08203D3A135; Sun, 26 Dec 2021 10:25:40 +0800 (CST) Date: Sun, 26 Dec 2021 10:25:40 +0800 X-OQ-MSGID: From: LdBeth In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-apple-darwin18.7.0) MULE/6.0 (HANACHIRUSATO) 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 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>>>> In >>>>> LdBeth wrote: ldb> [1 ] ldb> This patch that reverts only related changes (and does nothing ldb> else) in cb12a84f2c519a48dd87453c925e3bc36d9944db should make ldb> Gnus works again for none utf-8 NNTP servers. Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.221.153 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>>>> In >>>>> LdBeth wrote: ldb> [1 ] ldb> This patch that reverts only related changes (and does nothing ldb> else) in cb12a84f2c519a48dd87453c925e3bc36d9944db should make ldb> Gnus works again for none utf-8 NNTP servers. Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.221.153 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager >>>>> In >>>>> LdBeth wrote: ldb> [1 ] ldb> This patch that reverts only related changes (and does nothing ldb> else) in cb12a84f2c519a48dd87453c925e3bc36d9944db should make ldb> Gnus works again for none utf-8 NNTP servers. ldb> [2 revert.diff ] Unfortunately that only resolves the display problem, to enable correct subscription on none UTF-8 nntp server would require undone other changes in cb12a84f2c519a48dd87453c925e3bc36d9944db. -- LDB From unknown Tue Jun 17 01:50:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52792: 27.2; please don't hardcode utf-8 when fetching group list Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 26 Dec 2021 07:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52792 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: LdBeth Cc: 52792@debbugs.gnu.org Received: via spool by 52792-submit@debbugs.gnu.org id=B52792.164050204925568 (code B ref 52792); Sun, 26 Dec 2021 07:01:02 +0000 Received: (at 52792) by debbugs.gnu.org; 26 Dec 2021 07:00:49 +0000 Received: from localhost ([127.0.0.1]:40146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1NWT-0006eK-Ed for submit@debbugs.gnu.org; Sun, 26 Dec 2021 02:00:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1NWQ-0006e4-Ge for 52792@debbugs.gnu.org; Sun, 26 Dec 2021 02:00:47 -0500 Received: from [2001:470:142:3::e] (port=46802 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1NWK-00060f-Tz; Sun, 26 Dec 2021 02:00:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZHyENMU65dGhCHGDKkysrADbKX7ettxP0vE4lx2tdAs=; b=gkS3NrzTMWWc dYFdljaQQMpEK7Q/UVNynZjx5J4EHFd2caivaZuU7df9eI2GYtXqeQz3TR0cpI2MQ/TIXB/qGG/3U yZiTx+sXClkkBlZ57ShFfvueOe3tZC6FtcZ72lYs7p7IFK9mMywFGI8ZhmLFInpq+a/FAGbnGl/Ke 2sUM3PplGKT3ErcXJJppJiJOn/flCP2Me5fnUQhGKh90+S1B4TLVWHduqYl6X9Z2J53BMUAK/Mqx1 Fs8ksejHFDTEMy9pTLON7TnSw/ZNvFX2HH2pA26/t8tBPugNpbXbLMerGVJqOvYH4mbRh0nB/IBty 8QP78ZMij6A2tBY+woBNRQ==; Received: from [87.69.77.57] (port=3644 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1NWK-0003qe-RH; Sun, 26 Dec 2021 02:00:41 -0500 Date: Sun, 26 Dec 2021 09:00:54 +0200 Message-Id: <83tuevq28p.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from LdBeth on Sun, 26 Dec 2021 10:00:42 +0800) References: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 26 Dec 2021 10:00:42 +0800 > From: LdBeth > > This patch that reverts only related changes (and does nothing else) > in cb12a84f2c519a48dd87453c925e3bc36d9944db should make Gnus works > again for none utf-8 NNTP servers. Thanks, but this is not the right way to solve such problems, IMO. We should either make the coding-system be customizable as a simple value, or (better) have a more complex data structure that allows to specify the encoding for each NNTP server (or for servers matching some regexp), with UTF-8 being the default. Also, AFAICT, Gnus currently uses more than a single variable to hold the coding-system it uses for decoding stuff in different situations, so some changes will probably be needed to use a single customizable value everywhere. From unknown Tue Jun 17 01:50:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52792: 27.2; please don't hardcode utf-8 when fetching group list Resent-From: LdBeth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 26 Dec 2021 09:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52792 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Eli Zaretskii Cc: LdBeth , 52792@debbugs.gnu.org Received: via spool by 52792-submit@debbugs.gnu.org id=B52792.164051221411982 (code B ref 52792); Sun, 26 Dec 2021 09:51:02 +0000 Received: (at 52792) by debbugs.gnu.org; 26 Dec 2021 09:50:14 +0000 Received: from localhost ([127.0.0.1]:40246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1QAQ-00037B-3v for submit@debbugs.gnu.org; Sun, 26 Dec 2021 04:50:14 -0500 Received: from out203-205-251-60.mail.qq.com ([203.205.251.60]:34421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1QAL-00036D-KH for 52792@debbugs.gnu.org; Sun, 26 Dec 2021 04:50:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1640512200; bh=Nw7fxQYeuqlNhkO7RqfnynbW0tn1kgWp/96aj2z5VtE=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=nbvTF5y+JOwm5BIABnV1JPWfsnEtTkSrdeO9UiZq/SDSC6x1IFAJAMb2VsFQ+NTyI Xlu7E2ZAWYlfiUq3hGm4ILSd6osUxcKtpPpxCYBQcyUOqpcytZduX8MQGziX6Uk09w ods4CDvxPR0vi5vmfdW1xFyORZQLn7aoNOspLOz0= Received: from Costume-Party.local ([125.111.91.142]) by newxmesmtplogicsvrszb7.qq.com (NewEsmtp) with SMTP id C7AAFC90; Sun, 26 Dec 2021 17:49:58 +0800 X-QQ-mid: xmsmtpt1640512198tuzop8g2w Message-ID: X-QQ-XMAILINFO: N4WhQbLQyIqSdDksl1JNBYmZ+tw01EEB+86kYOQtJ2M0urcp6TRZWg05eaMR9I ET/7WDWaqTUl2hOBjc9BZ5frp1caqc8W2Wn50O/89Oehh/7iN4M31+7Zg7o4AlaDqbt64gVgJGGb 8UGkcjquTyM0QVLM7nUf1a6SPdg3Gd5jfobnBO6656bO7UZahHstf9/pQ57ydUVTX0qvf/1ZLHwv w0TIl5UsmAfMbXXxdBLK2/lkqSSTGMJXNNbE9OLHJLA/SbQpmk1invywpZwkAF5qse6DhbpybxUU 4FYS5QfFER7EC/DmL++peCRCNIVKciGQmTTTyM4SRjY3/m6Aa5GYxKRu9fUIwvi9ylSjt0BdeMJI IIriSz0ft2X3j/c79YgL4sFudUC+geT5lxWwzceDxr6cPOoMWkkGjOF1Y7UQ/nNbQQyH06RDIYSS Cee9Cvt3oULoPASvmDVAnScnDabxuLtH1TCx7K/yqG12IjroHZ7IR9ebmZwuEaB5SCCuTzhTuEn3 H8FcQUWFExX+Xao4NdAJsvZ7WM5hj+JzpBf/gVO5wg/qRK2o6LsMgjslV400ETj3zQOY1Xgk327v 2UA8u6KkQ2RNTCm5jPeXzhtHCYrNFWQElDzzNGcgdKEFkIPn0RTSAJvqNvT5ncNf2IZgPFxoG3Qd alwHD2114RfQ3ZSZQZA02+EEi3gaaOrp0yAURasiAT0H6UI69O/dgHA8pHg43CA3e2Cd5bCAopsK yALntBXtfp53Hwc/BW69hCIo8rJG5I7ks5cVbMpHRHZpk6yTNDQ7Z1exdO6zEywWEs10A1Pz7VVp AiOVEE3C7Mayxb4aeFDlnqO2NiF1NTW8Y= Received: by Costume-Party.local (Postfix, from userid 501) id 9F000203D3C821; Sun, 26 Dec 2021 17:49:56 +0800 (CST) Date: Sun, 26 Dec 2021 17:49:56 +0800 X-OQ-MSGID: From: LdBeth In-Reply-To: <83tuevq28p.fsf@gnu.org> References: <83tuevq28p.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-apple-darwin18.7.0) MULE/6.0 (HANACHIRUSATO) 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 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>>>> In >>>>> Eli Zaretskii wrote: > Thanks, but this is not the right way to solve such problems, IMO. We > should either make the coding-system be customizable as a simple > value, or (better) have a more complex data structure that [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.251.60 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>>>> In >>>>> Eli Zaretskii wrote: > Thanks, but this is not the right way to solve such problems, IMO. We > should either make the coding-system be customizable as a simple > value, or (better) have a more complex data structure that [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.251.60 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager >>>>> In <83tuevq28p.fsf@gnu.org> >>>>> Eli Zaretskii wrote: > Thanks, but this is not the right way to solve such problems, IMO. We > should either make the coding-system be customizable as a simple > value, or (better) have a more complex data structure that allows to > specify the encoding for each NNTP server (or for servers matching > some regexp), with UTF-8 being the default. Right, it would be more desirable to use UTF-8 internally, rather than doing ad-hoc encoding translation everywhere. > Also, AFAICT, Gnus currently uses more than a single variable to hold > the coding-system it uses for decoding stuff in different situations, > so some changes will probably be needed to use a single customizable > value everywhere. Currently the encode/decode functions in message.el works fine for GBK, this bug would not affect people who are only using Gnus for IMAP/Maildir. It would still better leaving these two systems (News and Messages) separated. Today most email services are already switched to UTF-8. It's only that many NNTP servers are still using the old encoding for legacy reasons. -- LDB