unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9351: 24.0.50; Gnus nnrss group names in utf-8
@ 2011-08-23 14:06 Tetsuo Tsukamoto
  2011-09-10 23:26 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Tetsuo Tsukamoto @ 2011-08-23 14:06 UTC (permalink / raw)
  To: 9351

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

Recent Gnus may have a problem in handling nnrss data file names
unless encoded in us-ascii.  When I invoke Gnus by M-x gnus, Emacs
signals an error saying that it cannot find the data file.  I am
attaching a backtrace showing the problem.

I am also attaching a diff showing my workaround for the problem.
I am not quite sure if it may be called a right fix.

-- 
Tetsuo Tsukamoto


In GNU Emacs 24.0.50.2 of 2011-08-14


[-- Attachment #2: Backtrace --]
[-- Type: application/octet-stream, Size: 7381 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: nnrss.el.diff --]
[-- Type: text/x-patch, Size: 648 bytes --]

--- nnrss.el.orig	2011-08-14 12:05:46.000000000 +0900
+++ nnrss.el	2011-08-23 17:05:37.000000000 +0900
@@ -363,12 +363,13 @@
 
 (deffoo nnrss-retrieve-groups (groups &optional server)
   (dolist (group groups)
+    (setq group (nnrss-decode-group-name group))
     (nnrss-possibly-change-group group server)
     (nnrss-check-group group server))
   (with-current-buffer nntp-server-buffer
     (erase-buffer)
     (dolist (group groups)
-      (let ((elem (assoc group nnrss-server-data)))
+      (let ((elem (assoc (gnus-group-decoded-name group) nnrss-server-data)))
 	(insert (format "%S %s 1 y\n" group (or (cadr elem) 0)))))
     'active))
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#9351: 24.0.50; Gnus nnrss group names in utf-8
  2011-08-23 14:06 bug#9351: 24.0.50; Gnus nnrss group names in utf-8 Tetsuo Tsukamoto
@ 2011-09-10 23:26 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-10 23:26 UTC (permalink / raw)
  To: Tetsuo Tsukamoto; +Cc: 9351

Tetsuo Tsukamoto <tt.tetsuo.tsukamoto@gmail.com> writes:

> I am also attaching a diff showing my workaround for the problem.
> I am not quite sure if it may be called a right fix.

Thanks; applied.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-10 23:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-23 14:06 bug#9351: 24.0.50; Gnus nnrss group names in utf-8 Tetsuo Tsukamoto
2011-09-10 23:26 ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).