]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix `G c' in Gnus group buffers for non-ASCII text
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 28 Oct 2019 14:10:51 +0000 (15:10 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 28 Oct 2019 14:10:51 +0000 (15:10 +0100)
* lisp/gnus/gnus-cus.el (gnus-group-customize): Decoding is
superfluous here -- everything is utf-8 already.
(gnus-group-customize-done): Don't double-encode the text (bug#37901).

lisp/gnus/gnus-cus.el

index 2e3fbfe9d4690ab83bba4187e9fcd22476920f12..5291d1d64d1134ea8bab102fed0194103ba51172 100644 (file)
@@ -421,11 +421,6 @@ category."))
            (delq elem tmp))
          (setq tmp (cdr tmp))))
 
-      ;; 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)))))
-
       (setq gnus-custom-params
             (apply 'widget-create 'group
                    :value values
@@ -497,10 +492,6 @@ form, but who cares?"
   "Apply changes and bury the buffer."
   (interactive)
   (let ((params (widget-value gnus-custom-params)))
-    ;; 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)))))
     (if gnus-custom-topic
        (gnus-topic-set-parameters gnus-custom-topic params)
       (gnus-group-edit-group-done 'params gnus-custom-group params)