From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sergey Organov Newsgroups: gmane.emacs.bugs Subject: bug#37901: 24.4; GNUS: gnus-group-customize breaks posting-style encoding Date: Thu, 24 Oct 2019 14:34:51 +0300 Message-ID: <87o8y6l6lg.fsf@osv.gnss.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="144566"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: 37901@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 24 14:39:53 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNcP8-000bRR-LJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Oct 2019 14:39:51 +0200 Original-Received: from localhost ([::1]:41276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNcP7-0005wL-Gn for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Oct 2019 08:39:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40215) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNbPP-0003ye-Pg for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 07:36:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNbPO-0002kL-78 for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 07:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54803) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNbPO-0002k9-3u for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 07:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iNbPN-0006pA-UM for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2019 07:36:01 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157191690326156 (code B ref -1); Thu, 24 Oct 2019 11:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Oct 2019 11:35:03 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170120 Archived-At: 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))