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: [PATCH] Gnus; Restore multi encoding support for NNTP Date: Sat, 01 Jan 2022 17:26:00 +0800 Message-ID: References: <87wnjqb62b.fsf@gnus.org> <87sfueb3y1.fsf@gnus.org> <87wnjm6tbs.fsf@gnus.org> <874k6o7okc.fsf@gnus.org> <83tueoeyby.fsf@gnu.org> <83mtkfg7g1.fsf@gnu.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="10672"; 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@ericabrahamsen.net, LdBeth , larsi@gnus.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 01 10:27:20 2022 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 1n3afV-0002XY-DH for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Jan 2022 10:27:20 +0100 Original-Received: from localhost ([::1]:38920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3afT-0005YZ-GG for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Jan 2022 04:27:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3aej-0004r0-Cr for emacs-devel@gnu.org; Sat, 01 Jan 2022 04:26:29 -0500 Original-Received: from out203-205-251-59.mail.qq.com ([203.205.251.59]:52627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3aeW-0001mo-TY; Sat, 01 Jan 2022 04:26:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1641029165; bh=JeuFxMepoIE7y1/sQnO9qKmtULinqSl1msuZBNnCUBs=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=RQahDVTbhS3/ywQhVDFTBvmzthVCDCRQ7t+UtdDXAsn/CeXA/qTvWJ08Gz2ljz7Xg DAL/WdKgqHb1CWF/glhSVG29C4RImcsoV1HgmHPnZ4cQqoa1vLgAlZZu+zVd2hiHxP NKZMwyGcn9LNzfmqEZY66nBRRCmsy6Ynaejk/NZ0= Original-Received: from Costume-Party.local ([125.111.88.17]) by newxmesmtplogicsvrszc6.qq.com (NewEsmtp) with SMTP id 6832BC15; Sat, 01 Jan 2022 17:26:03 +0800 X-QQ-mid: xmsmtpt1641029163tc6he3dpc X-QQ-XMAILINFO: MX+1SEN3H+wARPkBXZIzrT1/iwPfI+FSPdoY7PnA/Cll5PS/Y2Ohrpeb8XfC57 ZwFrX+03492Vw7KrmFlo3kkMt59PZJlGpJMrqMVtZ++RUPCS/QNNTg0EwjwYa3krorTbMfnZber6 mugmtsMtTmI3RPzUN3ZPZc9uNkxZlJQJHZJ0rgom5FfmvMXeRY9fEME6Bt3SHwyFZrLrhUBCLgBf oeV3KOYfMIzVpcjKJh3spsoLrtmhltMRgP28KShuP5315y8zjviWYUDyoJDaSQ7qyebyUvOZ7FEm o08OxmeeAP3qSx5WnOnWLcRXy4KMOvz5VkEdh7UbU3uemvc/OWN3l2Hio1hSIAoNyndVO7q7Weva fjspCErMOXS5DVMm9GgiSF4GjYxp5sOgJI9PXNAhvKdQdsvTYYfWDv5CWCrh/qaAuecB7UhcO0j3 kTJfE3LlctTAIcNRe6SVyFcLqQPhrnl8YmfLWSewMY99CQfeh0lYuST+Um/mOy3EtPuMEXmd7u8C 387AzhSB4KmFoW1Sxzi8LY04jNHUZLBMBU5auJyIGYsQhl0X2an5YDcnGtaKkIzN5qkfpiBC+O6X 99zbj0khz8wBSCPtzz5Xs+Tc4f3e36bvN/VpQtC1ShdrsUwGyuKvSs/5rM9cOWUrp0IzeAk+bM7R zIjxXmd9Wujx1QIcgmy+gRuQrb5HH2Nq1QBLVV+q1LDbNfdLrTx8PTnz170TKoiwhdef5Nz7buqf Dpn4l0ODifOJHjFRp9CXr90zRI92KDu/TvpBaIH7sozQqtkdKoNQTbxD1iJH2li4nXo6jjvehA8M Lhx8SZlnoP9vEKkXGXZMp1KVdrHuDMkX/V5TgbLJ Original-Received: by Costume-Party.local (Postfix, from userid 501) id 34C1A203D6934E; Sat, 1 Jan 2022 17:26:00 +0800 (CST) X-OQ-MSGID: In-Reply-To: <83mtkfg7g1.fsf@gnu.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=203.205.251.59; envelope-from=andpuke@foxmail.com; helo=out203-205-251-59.mail.qq.com X-Spam_score_int: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.7 / 5.0 requ) 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_H2=-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:283790 Archived-At: >>>>> In <83mtkfg7g1.fsf@gnu.org> >>>>> Eli Zaretskii wrote: >> Eli> If by "using UTF-8 internally" you mean the internal representation of >> Eli> buffer text and strings, then encoding is still needed for correct >> Eli> handling of codepoints outside of Unicode. >> >> Gnus already uses `utf-8-emacs' coding to save the newsrc.eld file for >> a while. According to the Elisp manual, that is the coding system >> that can handle the internal codepoints used by Emacs. Eli> You are saying that encoding by utf-8-emacs is a no-op? AFAIR, that's Eli> not true. I mean, there should be no problem `prin1' any emacs strings to a file saved using utf-8-emacs coding, and correctly `read' them back given the file has `-*- coding: utf-8-emacs -*-` header line. Encoding by utf-8-emacs was used under the assumption that Gnus from a much older version of Emacs can safely read the file. By treating everything as UTF-8, Gnus has already broke the compatibility with older versions (.newsrc.eld contains wrongly encoded characters cannot work with older version that can do the correct encode/decode of none UTF-8 group names), so I think there has no point to continue restrict the charset of .newsrc.eld to be ASCII readable. And so this patch can take the advantages of both the UTF-8 internal string encoding without the redundancy of book keeping an extra translation table, which probably can not be as good as the approach taken by this patch. -- LDB