]> git.eshelyaron.com Git - emacs.git/commitdiff
Make sure to decode group names read from newsrc files
authorEric Abrahamsen <eric@ericabrahamsen.net>
Sun, 16 Jun 2019 23:21:56 +0000 (16:21 -0700)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Sun, 16 Jun 2019 23:21:56 +0000 (16:21 -0700)
* lisp/gnus/gnus-start.el (gnus-newsrc-to-gnus-format): The files are
  written as 'raw-text.

lisp/gnus/gnus-start.el

index 0c15065796f9b36255abbbf19c557d06bcf6495f..5d9c268bc6d9b818daa26c6988db5eb6da6a6fae 100644 (file)
@@ -2517,7 +2517,9 @@ If FORCE is non-nil, the .newsrc file is read."
                 (read buf))
            group (if (numberp group)
                      (number-to-string group)
-                   (symbol-name group)))
+                   ;; newsrc files are written as 'raw-text.
+                   (decode-coding-string
+                    (symbol-name group) 'utf-8)))
       (widen)
       (cond
        ;; It's possible that "group" is actually an options line.