emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/gnus-decoded d23d12a 1/2: Make sure to decode grou


From: Eric Abrahamsen
Subject: [Emacs-diffs] scratch/gnus-decoded d23d12a 1/2: Make sure to decode group names read from newsrc files
Date: Sun, 16 Jun 2019 22:07:42 -0400 (EDT)

branch: scratch/gnus-decoded
commit d23d12aa5df49107fc16a38712c45d9b8c823a98
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Make sure to decode group names read from newsrc files
    
    * lisp/gnus/gnus-start.el (gnus-newsrc-to-gnus-format): The files are
      written as 'raw-text.
---
 lisp/gnus/gnus-start.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 0c15065..5d9c268 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]