From unknown Sun Sep 07 01:05:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37901: 24.4; GNUS: gnus-group-customize breaks posting-style encoding Resent-From: Sergey Organov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Oct 2019 11:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37901 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 37901@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157191690326156 (code B ref -1); Thu, 24 Oct 2019 11:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Oct 2019 11:35:03 +0000 Received: from localhost ([127.0.0.1]:35391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNbOQ-0006na-0s for submit@debbugs.gnu.org; Thu, 24 Oct 2019 07:35:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:48321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNbON-0006nI-6z for submit@debbugs.gnu.org; Thu, 24 Oct 2019 07:35:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40145) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNbOK-0000wA-MS for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 07:34:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNbOJ-0002NW-61 for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 07:34:56 -0400 Received: from mail.javad.com ([54.86.164.124]:57725) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iNbOI-0002ND-VR for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 07:34:55 -0400 Received: from osv (unknown [89.175.180.246]) by mail.javad.com (Postfix) with ESMTPSA id 050903EA4E for ; Thu, 24 Oct 2019 11:34:53 +0000 (UTC) Authentication-Results: mail.javad.com; dkim=pass (1024-bit key; unprotected) header.d=javad.com header.i=@javad.com header.b=SQjSsfEP; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=javad.com; s=default; t=1571916893; bh=QylrSKk3j6xukIxKnGV2IGfZ9ZpBFnKQwuCYd94kFE0=; l=4691; h=Received:From:To:Subject; b=SQjSsfEPnGS3XHVyyIaLknjf6cytF1uBoY8WW92rB2YLmEPdyXDwcmv/uhZsobco+ 3sVCN8V/uO67UQPwqJ+8y9nWqJr4e11AL8SNRvoA9n8noZ04B4zyuWdB25BLC5NXVa CjDGwXhyHtcq4Xj2KmJyhAdXLiedZlR3r1TsYzoo= Authentication-Results: ip-172-31-2-110; spf=pass (sender IP is 89.175.180.246) smtp.mailfrom=osv@javad.com smtp.helo=osv Received-SPF: pass (ip-172-31-2-110: connection is authenticated) Received: from osv by osv with local (Exim 4.84_2) (envelope-from ) id 1iNbOF-0007GL-Hj for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 14:34:51 +0300 From: Sergey Organov Date: Thu, 24 Oct 2019 14:34:51 +0300 Message-ID: <87o8y6l6lg.fsf@osv.gnss.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 54.86.164.124 X-Spam-Score: 2.1 (++) 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: Hello, Even though I report this for emacs 24.4, the code that is suspect[1] is still there in git:master:b3b7451, so it's likely the bug is not yet fixed. To reproduce the bug starting from "emacs -Q": Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: x.org] 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sorganov[at]gmail.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=osv%40javad.com; ip=209.51.188.17; r=debbugs.gnu.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 2.0 SPOOFED_FREEMAIL No description available. 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: -0.9 (/) Hello, Even though I report this for emacs 24.4, the code that is suspect[1] is still there in git:master:b3b7451, so it's likely the bug is not yet fixed. To reproduce the bug starting from "emacs -Q": M-x gnus G V test G p C-k ... type to put some non-ASCII text into 'posting-style', e.g.: ((posting-style ("From" "=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9 =D0=9E=D1=80=D0=B3=D0=B0=D0= =BD=D0=BE=D0=B2 "))) C-c C-c G c (or press button with mouse) G p ... and now I see: ((posting-style ("From" "\320\241\320\265\321\200\320\263\320\265\320\271 \320\236\321\= 200\320\263\320\260\320\275\320\276\320\262 "))) in the group parameters buffer, that is utterly broken. [1] The suspect code is: ;; Encode values posting-style holds. (dolist (style (cdr (assq 'posting-style params))) (when (stringp (cadr style)) (setcdr style (list (encode-coding-string (cadr style) 'utf-8))))) in gnus-group-customize-done, and it has matching chunk: ;; Decode values posting-style holds. (dolist (style (cdr (assq 'posting-style values))) (when (stringp (cadr style)) (setcdr style (list (decode-coding-string (cadr style) 'utf-8))))) in gnus-group-customize, though the latter seems to be harmless. -- In GNU Emacs 24.4.1 (i586-pc-linux-gnu, GTK+ Version 3.14.5) of 2017-09-12 on x86-csail-01, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.1160400= 0 System Description: Debian GNU/Linux 8.11 (jessie) Configured using: `configure --build i586-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/= 24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/sit= e-lisp:/usr/share/emacs/site-lisp --build i586-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/= 24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/sit= e-lisp:/usr/share/emacs/site-lisp --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fstack-protector-strong -Wformat -Werror=3Dformat-security -Wall' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-z,relro' Important settings: value of $LC_MONETARY: en_GB.utf8 value of $LC_NUMERIC: en_GB.utf8 value of $LC_TIME: en_GB.utf8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r e t t =3D =20 - e , m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 8 71854 6795) (symbols 24 17572 0) (miscs 20 40 146) (strings 16 9074 4534) (string-bytes 1 249887) (vectors 8 9550) (vector-slots 4 392865 5202) (floats 8 65 108) (intervals 28 217 22) (buffers 512 11) (heap 1024 34231 762)) From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 10:06:30 2019 Received: (at control) by debbugs.gnu.org; 28 Oct 2019 14:06:30 +0000 Received: from localhost ([127.0.0.1]:45998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP5fB-0006eZ-OQ for submit@debbugs.gnu.org; Mon, 28 Oct 2019 10:06:29 -0400 Received: from quimby.gnus.org ([80.91.231.51]:40606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP5f9-0006eR-K6 for control@debbugs.gnu.org; Mon, 28 Oct 2019 10:06:27 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP5f3-000806-29 for control@debbugs.gnu.org; Mon, 28 Oct 2019 15:06:26 +0100 Date: Mon, 28 Oct 2019 15:06:20 +0100 Message-Id: <877e4pars3.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #37901 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: tags 37901 + confirmed quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) tags 37901 + confirmed quit From unknown Sun Sep 07 01:05:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37901: 24.4; GNUS: gnus-group-customize breaks posting-style encoding Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Oct 2019 14:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37901 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Sergey Organov Cc: 37901@debbugs.gnu.org Received: via spool by 37901-submit@debbugs.gnu.org id=B37901.157227198626324 (code B ref 37901); Mon, 28 Oct 2019 14:14:02 +0000 Received: (at 37901) by debbugs.gnu.org; 28 Oct 2019 14:13:06 +0000 Received: from localhost ([127.0.0.1]:46017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP5lZ-0006qW-V7 for submit@debbugs.gnu.org; Mon, 28 Oct 2019 10:13:06 -0400 Received: from quimby.gnus.org ([80.91.231.51]:40696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP5lY-0006qP-JH for 37901@debbugs.gnu.org; Mon, 28 Oct 2019 10:13:04 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP5lV-00083W-8j; Mon, 28 Oct 2019 15:13:03 +0100 From: Lars Ingebrigtsen References: <87o8y6l6lg.fsf@osv.gnss.ru> Date: Mon, 28 Oct 2019 15:13:00 +0100 In-Reply-To: <87o8y6l6lg.fsf@osv.gnss.ru> (Sergey Organov's message of "Thu, 24 Oct 2019 14:34:51 +0300") Message-ID: <8736fdargz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Sergey Organov writes: > Even though I report this for emacs 24.4, the code that is suspect[1] is > still there in git:master:b3b7451, so it's likely the bug is not yet > fixed. Yup, I'm still seeing this in Emacs 27. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.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: -1.0 (-) Sergey Organov writes: > Even though I report this for emacs 24.4, the code that is suspect[1] is > still there in git:master:b3b7451, so it's likely the bug is not yet > fixed. Yup, I'm still seeing this in Emacs 27. > [1] The suspect code is: > > ;; Encode values posting-style holds. > (dolist (style (cdr (assq 'posting-style params))) > (when (stringp (cadr style)) > (setcdr style (list (encode-coding-string (cadr style) 'utf-8))))) > > in gnus-group-customize-done, and it has matching chunk: > > ;; Decode values posting-style holds. > (dolist (style (cdr (assq 'posting-style values))) > (when (stringp (cadr style)) > (setcdr style (list (decode-coding-string (cadr style) 'utf-8))))) > > in gnus-group-customize, though the latter seems to be harmless. Thanks for tracking down the error. Removing the code in [1] indeed fixes the problem (I think it was necessary before when the .newsrc.eld file wasn't utf-8, but now it's an error. And I removed the latter chunk, too. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 10:13:12 2019 Received: (at control) by debbugs.gnu.org; 28 Oct 2019 14:13:12 +0000 Received: from localhost ([127.0.0.1]:46020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP5lg-0006qq-7O for submit@debbugs.gnu.org; Mon, 28 Oct 2019 10:13:12 -0400 Received: from quimby.gnus.org ([80.91.231.51]:40710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP5le-0006qi-H2 for control@debbugs.gnu.org; Mon, 28 Oct 2019 10:13:10 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP5lb-00083f-Pt for control@debbugs.gnu.org; Mon, 28 Oct 2019 15:13:09 +0100 Date: Mon, 28 Oct 2019 15:13:07 +0100 Message-Id: <871ruxargs.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #37901 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: tags 37901 fixed close 37901 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) tags 37901 fixed close 37901 27.1 quit