Gnus development mailing list
 help / color / mirror / Atom feed
* Debugger entered--Lisp error: (error "Can't rfc2047-encode `espa\x00f1ol \302\241Mira qui\x00e9n'")
@ 2006-12-21 10:08 Jhair Tocancipa Triana
  2006-12-21 16:21 ` Reiner Steib
  0 siblings, 1 reply; 6+ messages in thread
From: Jhair Tocancipa Triana @ 2006-12-21 10:08 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 2102 bytes --]

With No Gnus v0.6 from (cvs.gnus.org) and emacs 23.0.0.5 (unicode
branch) reading the subject of a particular article from a rss feed
fails with the backtrace found at the bottom of this email.

The article is written in spanish, I've attached the article
(gzipped).

With No Gnus v0.6 and emacs 22.0.90.1 the error is not triggered.

How can this be fixed? gnus stops when finds this error and the only
workaround I can think of, is to delete the rss group from my
.newsrc.eld file manually to be able to access the other groups.

Thanks in advance,

Debugger entered--Lisp error: (error "Can't rfc2047-encode `espa\x00f1ol \302\241Mira qui\x00e9n'")
  signal(error ("Can't rfc2047-encode `espa\x00f1ol \302\241Mira qui\x00e9n'"))
  error("Can't rfc2047-encode `%s'" "espa\x00f1ol \302\241Mira qui\x00e9n")
  rfc2047-encode(88 108)
  rfc2047-encode-region(1 96)
  nnrss-mime-encode-string(#("El actor venezolano Juan Alfonso Baptista qued\x00f3 segundo en concurso espa\x00f1ol \302\241Mira qui\x00e9n baila!" 0 46 (charset windows-1252) 47 72 (charset windows-1252) 73 86 (charset windows-1252) 87 95 (charset windows-1252)))
  nnrss-check-group("eltiempo" "")
  nnrss-request-group("eltiempo" "" nil)
  gnus-activate-group("nnrss:eltiempo" scan)
  gnus-get-unread-articles(nil)
  gnus-setup-news(nil nil nil)
  byte-code("\b„\x0e\0	„\x0e\0Æ ˆ‚Q\0ÇÈ!ˆÃ‰\n!\x13\f„\x1e\0\rƒ!\0Ê ˆ\x0e\x1aƒ+\0ËÌÍ\"ˆÃ‹ÃŽÃ\"ˆÃÃ‘\x0e^[\b#ˆÃ‡Ã’!ˆÃ“ ˆÃ”\x0e^[!ˆÃ• ˆÃ–×!ˆÃ˜ ˆÃ‡Ã™!ˆÃ‘‡" [dont-connect did-connect gnus-startup-file gnus-current-startup-file gnus-slave gnus-use-dribble-file gnus-group-quit gnus-run-hooks gnus-startup-hook gnus-make-newsrc-file gnus-dribble-read-file gnus-request-create-group "queue" (nndraft "") "drafts" (nndraft "") gnus-setup-news nil gnus-setup-news-hook gnus-start-draft-setup gnus-group-list-groups gnus-group-first-unread-group gnus-configure-windows group gnus-group-set-mode-line gnus-started-hook gnus-agent level] 4)
  gnus-1(nil nil nil)
  gnus(nil)
  call-interactively(gnus)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

-- 
--Jhair

[-- Attachment #2: nnrss_message_gnus_fails.txt.gz --]
[-- Type: application/octet-stream, Size: 706 bytes --]

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

* Re: Debugger entered--Lisp error: (error "Can't rfc2047-encode `espa\x00f1ol \302\241Mira qui\x00e9n'")
  2006-12-21 10:08 Debugger entered--Lisp error: (error "Can't rfc2047-encode `espa\x00f1ol \302\241Mira qui\x00e9n'") Jhair Tocancipa Triana
@ 2006-12-21 16:21 ` Reiner Steib
  2006-12-22  0:09   ` Katsumi Yamaoka
  0 siblings, 1 reply; 6+ messages in thread
From: Reiner Steib @ 2006-12-21 16:21 UTC (permalink / raw)


On Thu, Dec 21 2006, Jhair Tocancipa Triana wrote:

> With No Gnus v0.6 from (cvs.gnus.org) and emacs 23.0.0.5 (unicode
> branch) 
[...]
> With No Gnus v0.6 and emacs 22.0.90.1 the error is not triggered.

The problem is reproducible with Gnus 5.11 and Emacs 23 (quite old:
2006-10-16):

$ emacs-23 -Q

--8<---------------cut here---------------start------------->8---
(require 'nnrss)
(nnrss-mime-encode-string
 #("El actor venezolano Juan Alfonso Baptista qued\x00f3 segundo en concurso espa\x00f1ol \302\241Mira qui\x00e9n baila!"
   0 46 (charset windows-1252)
   47 72 (charset windows-1252)
   73 86 (charset windows-1252)
   87 95 (charset windows-1252)))
--8<---------------cut here---------------end--------------->8---

Unless you get a more useful answer here, I'd suggest to report the
problem using `M-x report-emacs-bug RET'.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




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

* Re: Debugger entered--Lisp error: (error "Can't rfc2047-encode `espa\x00f1ol \302\241Mira qui\x00e9n'")
  2006-12-21 16:21 ` Reiner Steib
@ 2006-12-22  0:09   ` Katsumi Yamaoka
  2006-12-22  4:32     ` Katsumi Yamaoka
  0 siblings, 1 reply; 6+ messages in thread
From: Katsumi Yamaoka @ 2006-12-22  0:09 UTC (permalink / raw)
  Cc: ding

Hi,

Could you let me know the url you subscribe to for the nnrss:eltiempo
group?  I'd like to trace what Emacs 23 does, because I suspect Gnus
breaks the xml contents due to the unexpected unibyte-multibyte
conversion with Emacs 23.  (I'm not sure I have time to do that in
this year-end, though.  Sorry.)

>>>>> In <v93b79rzhq.fsf@marauder.physik.uni-ulm.de>
>>>>>	Reiner Steib wrote:

> $ emacs-23 -Q

> (require 'nnrss)
> (nnrss-mime-encode-string
>  #("El actor venezolano Juan Alfonso Baptista qued\x00f3 segundo en concurso espa\x00f1ol \302\241Mira qui\x00e9n baila!"
>    0 46 (charset windows-1252)
>    47 72 (charset windows-1252)
>    73 86 (charset windows-1252)
>    87 95 (charset windows-1252)))

I could reproduce the error.  However, that \xNNNN and \NNN things
appear in the string then is funny.  Although those might only be
a deed of the debugger, they should have been decoded fully as
human-readable characters.

BTW, the following workaround might help temporarily.

--8<---------------cut here---------------start------------->8---
(defadvice mm-find-mime-charset-region (after delete-nil-elements activate)
  "Delete nil elements in the return value."
  (setq ad-return-value (delq nil ad-return-value)))
--8<---------------cut here---------------end--------------->8---

Regards,



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

* Re: Debugger entered--Lisp error: (error "Can't rfc2047-encode `espa\x00f1ol \302\241Mira qui\x00e9n'")
  2006-12-22  0:09   ` Katsumi Yamaoka
@ 2006-12-22  4:32     ` Katsumi Yamaoka
  2006-12-22  6:57       ` Katsumi Yamaoka
  2006-12-22 11:03       ` Jhair Tocancipa Triana
  0 siblings, 2 replies; 6+ messages in thread
From: Katsumi Yamaoka @ 2006-12-22  4:32 UTC (permalink / raw)
  Cc: ding

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

>>>>> In <b4mhcvo3i66.fsf@jpl.org> Katsumi Yamaoka wrote:

> Could you let me know the url you subscribe to for the nnrss:eltiempo
> group?

I found that the url is <http://www.eltiempo.com/rss.xml>.  Is
it right?  Though the article in question seems to have been
expired unfortunately.

> I'd like to trace what Emacs 23 does, because I suspect Gnus breaks
> the xml contents due to the unexpected unibyte-multibyte conversion
> with Emacs 23.

Although I've never had the problem so far, the patch attached
below might do the trick if my guess hits.

> BTW, the following workaround might help temporarily.

> (defadvice mm-find-mime-charset-region (after delete-nil-elements activate)

Please don't use this workaround if you are going to try the
patch at the time when you encounter a similar problem.


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

--- nnrss.el~	2006-05-23 14:47:29 +0000
+++ nnrss.el	2006-12-22 04:29:51 +0000
@@ -418,8 +418,10 @@
       (nnheader-remove-cr-followed-by-lf)
       ;; Decode text according to the encoding attribute.
       (when (setq cs (nnrss-get-encoding))
-	(mm-decode-coding-region (point-min) (point-max) cs)
-	(mm-enable-multibyte))
+	(insert (prog1
+		    (mm-decode-coding-string (buffer-string) cs)
+		  (erase-buffer)
+		  (mm-enable-multibyte))))
       (goto-char (point-min))
 
       ;; Because xml-parse-region can't deal with anything that isn't

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

* Re: Debugger entered--Lisp error: (error "Can't rfc2047-encode `espa\x00f1ol \302\241Mira qui\x00e9n'")
  2006-12-22  4:32     ` Katsumi Yamaoka
@ 2006-12-22  6:57       ` Katsumi Yamaoka
  2006-12-22 11:03       ` Jhair Tocancipa Triana
  1 sibling, 0 replies; 6+ messages in thread
From: Katsumi Yamaoka @ 2006-12-22  6:57 UTC (permalink / raw)
  Cc: ding

>>>>> In <b4m3b78o8is.fsf@jpl.org> Katsumi Yamaoka wrote:

> --- nnrss.el~	2006-05-23 14:47:29 +0000
> +++ nnrss.el	2006-12-22 04:29:51 +0000
[...]
> -	(mm-decode-coding-region (point-min) (point-max) cs)
> -	(mm-enable-multibyte))
> +	(insert (prog1
> +		    (mm-decode-coding-string (buffer-string) cs)
> +		  (erase-buffer)
> +		  (mm-enable-multibyte))))

I tried <http://www3.asahi.com/rss/index.rdf> as a nnrss group
and realized this fix has to be done for Emacs 23 anyway.  So,
I've installed it in both the v5-10 branch and the trunk.

2006-12-22  Katsumi Yamaoka  <yamaoka@jpl.org>

	* nnrss.el (nnrss-fetch): Replace buffer's contents with the decoded
	one after turning on the buffer's multibyteness instead of decoding
	them directly in the unibyte buffer that causes unexpected conversion
	in Emacs 23 (unicode).

Regards,



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

* Re: Debugger entered--Lisp error: (error "Can't rfc2047-encode `espa\x00f1ol \302\241Mira qui\x00e9n'")
  2006-12-22  4:32     ` Katsumi Yamaoka
  2006-12-22  6:57       ` Katsumi Yamaoka
@ 2006-12-22 11:03       ` Jhair Tocancipa Triana
  1 sibling, 0 replies; 6+ messages in thread
From: Jhair Tocancipa Triana @ 2006-12-22 11:03 UTC (permalink / raw)


Katsumi Yamaoka writes:

>> Could you let me know the url you subscribe to for the nnrss:eltiempo
>> group?

> I found that the url is <http://www.eltiempo.com/rss.xml>.  Is
> it right?  Though the article in question seems to have been
> expired unfortunately.

My apologies for my late response. Yes, that is the URL and you are
right, the article expired already, unfortunately.

>> --- nnrss.el~	2006-05-23 14:47:29 +0000
>> +++ nnrss.el	2006-12-22 04:29:51 +0000
> [...]
>> -	(mm-decode-coding-region (point-min) (point-max) cs)
>> -	(mm-enable-multibyte))
>> +	(insert (prog1
>> +		    (mm-decode-coding-string (buffer-string) cs)
>> +		  (erase-buffer)
>> +		  (mm-enable-multibyte))))

> I tried <http://www3.asahi.com/rss/index.rdf> as a nnrss group
> and realized this fix has to be done for Emacs 23 anyway.  So,
> I've installed it in both the v5-10 branch and the trunk.

Thank you very much for fixing this problem!

Regards,

-- 
-- Jhair




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

end of thread, other threads:[~2006-12-22 11:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-21 10:08 Debugger entered--Lisp error: (error "Can't rfc2047-encode `espa\x00f1ol \302\241Mira qui\x00e9n'") Jhair Tocancipa Triana
2006-12-21 16:21 ` Reiner Steib
2006-12-22  0:09   ` Katsumi Yamaoka
2006-12-22  4:32     ` Katsumi Yamaoka
2006-12-22  6:57       ` Katsumi Yamaoka
2006-12-22 11:03       ` Jhair Tocancipa Triana

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 NNTP newsgroup(s).