* gnus-agent.el (gnus-agent-group-path): Decode group name.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 20 Dec 2004 01:37:06 +0000 (01:37 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 20 Dec 2004 01:37:06 +0000 (01:37 +0000)
(gnus-agent-group-pathname): Ditto.

* gnus-cache.el (gnus-cache-file-name): Decode group name.

* gnus-group.el (gnus-group-make-group): Decode group name.
(gnus-group-make-rss-group): Register the group data after opening
 the nnrss group.

lisp/ChangeLog
lisp/gnus-agent.el
lisp/gnus-cache.el
lisp/gnus-group.el

index b902ff6..5363189 100644 (file)
@@ -1,3 +1,14 @@
+2004-12-20  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-agent.el (gnus-agent-group-path): Decode group name.
+       (gnus-agent-group-pathname): Ditto.
+
+       * gnus-cache.el (gnus-cache-file-name): Decode group name.
+
+       * gnus-group.el (gnus-group-make-group): Decode group name.
+       (gnus-group-make-rss-group): Register the group data after opening
+       the nnrss group.
+
 2004-12-17  Paul Jarc  <prj@po.cwru.edu>
 
        * nnmaildir.el (nnmaildir-request-expire-articles): Articles moved
index bc13dd7..939ec39 100644 (file)
@@ -1385,7 +1385,7 @@ downloaded into the agent."
         (nnheader-translate-file-chars
          (nnheader-replace-duplicate-chars-in-string
           (nnheader-replace-chars-in-string 
-           (gnus-group-real-name group)
+           (gnus-group-real-name (gnus-group-decoded-name group))
            ?/ ?_)
           ?. ?_)))
   (if (or nnmail-use-long-file-names
@@ -1402,7 +1402,9 @@ downloaded into the agent."
   ;; while plugged.
   (let ((gnus-command-method (or gnus-command-method
                                  (gnus-find-method-for-group group))))
-    (nnmail-group-pathname (gnus-group-real-name group) (gnus-agent-directory))))
+    (nnmail-group-pathname (gnus-group-real-name
+                           (gnus-group-decoded-name group))
+                          (gnus-agent-directory))))
 
 (defun gnus-agent-get-function (method)
   (if (gnus-online method)
index 2985490..0f2c475 100644 (file)
@@ -422,6 +422,7 @@ Returns the list of articles removed."
       (and (not unread) (not ticked) (not dormant) (memq 'read class))))
 
 (defun gnus-cache-file-name (group article)
+  (setq group (gnus-group-decoded-name group))
   (expand-file-name
    (if (stringp article) article (int-to-string article))
    (file-name-as-directory
index 515270b..8165d70 100644 (file)
@@ -2284,7 +2284,7 @@ ADDRESS."
         (nname (if method (gnus-group-prefixed-name name meth) name))
         backend info)
     (when (gnus-group-entry nname)
-      (error "Group %s already exists" nname))
+      (error "Group %s already exists" (gnus-group-decoded-name nname)))
     ;; Subscribe to the new group.
     (gnus-group-change-level
      (setq info (list t nname gnus-level-default-subscribed nil nil meth))
@@ -2638,12 +2638,11 @@ If there is, use Gnus to create an nnrss group"
            ;; Unify non-ASCII text.
            (setq title (mm-decode-coding-string
                         (mm-encode-coding-string title 'utf-8) 'utf-8)))
-         (push (list title href desc)
-               nnrss-group-alist)
          (gnus-group-make-group (if encodable
                                     (mm-encode-coding-string title 'utf-8)
                                   title)
                                 '(nnrss ""))
+         (push (list title href desc) nnrss-group-alist)
          (nnrss-save-server-data nil))
       (error "No feeds found for %s" url))))