From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Gnus; Restore multi encoding support for NNTP Date: Sat, 01 Jan 2022 10:56:46 +0200 Message-ID: <83mtkfg7g1.fsf@gnu.org> References: <87wnjqb62b.fsf@gnus.org> <87sfueb3y1.fsf@gnus.org> <87wnjm6tbs.fsf@gnus.org> <874k6o7okc.fsf@gnus.org> <83tueoeyby.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="997"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eric@ericabrahamsen.net, larsi@gnus.org, emacs-devel@gnu.org To: LdBeth Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 01 09:57:48 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 1n3aCx-00005f-5H for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Jan 2022 09:57:47 +0100 Original-Received: from localhost ([::1]:60310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3aCv-0008AL-KF for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Jan 2022 03:57:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3aC3-0007ON-Rr for emacs-devel@gnu.org; Sat, 01 Jan 2022 03:56:51 -0500 Original-Received: from [2001:470:142:3::e] (port=55000 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 1n3aC1-0007zK-5g; Sat, 01 Jan 2022 03:56:49 -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=I+nZpSeSPDA+c8Y6bJ9TL1UFm3YITSZePPY2ixBzSrg=; b=V+gIjs9WIAKf h2Wq/TJgeaa0CkD0ZhKuFduB4+RV1H8PsHR35LrYE0KlAPSivAyvggDII6y4d0JXibZf4P6RL/Tgg DppLjirhr7tZvbQ00S9/dUeNRV8CqrKUSlBFGkoq7yNRMnbBTH+eVRs6ITTgl/gDzt+aZ8eZOu9hg NUi+pwosddI44Z8CMq4HLFefMGf4ltNfb6TEQaJYxxnNxr/VURsLn5JMG1URzqZBCAHi72RGf9/5U eSQ55OHfpW5VB5kyRj8Ww3iUjo+GJl6u5cyQY8daerLMqKwcAnaGLG7B4rRnA9K4PpHhvA1Sgo2n8 AhgXp/39L4cmje9LMbQ42A==; Original-Received: from [87.69.77.57] (port=3816 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 1n3aC1-0003LS-4O; Sat, 01 Jan 2022 03:56:49 -0500 In-Reply-To: (message from LdBeth on Sat, 01 Jan 2022 16:34:12 +0800) 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:283788 Archived-At: > Date: Sat, 01 Jan 2022 16:34:12 +0800 > From: LdBeth > Cc: eric@ericabrahamsen.net, LdBeth , larsi@gnus.org, > emacs-devel@gnu.org > > >>>>> In <83tueoeyby.fsf@gnu.org> > >>>>> Eli Zaretskii wrote: > > >> I have now figured how to write text property into .newsrc.eld: Gnus > >> does extra UTF-8 encoding when save group names, since it is now > >> already using UTF-8 encoding internally, I think it would be safe to > >> just remove that. > > 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. You are saying that encoding by utf-8-emacs is a no-op? AFAIR, that's not true.