From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60711 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: "Can't rfc2047-encode" error. Date: Thu, 04 Aug 2005 19:55:53 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1123239341 10644 80.91.229.2 (5 Aug 2005 10:55:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2005 10:55:41 +0000 (UTC) Original-X-From: ding-owner+M9221=ding+2Daccount=gmane.org@lists.math.uh.edu Fri Aug 05 12:55:36 2005 Return-path: Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E0zqU-0002Sp-4b for ding-account@gmane.org; Fri, 05 Aug 2005 12:54:34 +0200 Original-Received: from malifon.math.uh.edu (IDENT:mail@malifon.math.uh.edu [129.7.128.13]) by mail-relay.eunet.no (8.13.1/8.13.1/GN) with ESMTP id j74B1DV7085482 for ; Thu, 4 Aug 2005 13:01:13 +0200 (CEST) (envelope-from ding-owner+M9221=ding+2Daccount=gmane.org@lists.math.uh.edu) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1E0dOV-0000z5-03 for ding-account@gmane.org; Thu, 04 Aug 2005 05:56:11 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1E0dON-0000yw-00 for ding@lists.math.uh.edu; Thu, 04 Aug 2005 05:56:03 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1E0dOL-000207-Jy for ding@lists.math.uh.edu; Thu, 04 Aug 2005 05:56:01 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1E0cSG-0001p7-00 for ; Thu, 04 Aug 2005 11:56:00 +0200 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1E0dOK-0003bt-IL for ding@gnus.org; Thu, 04 Aug 2005 05:56:00 -0500 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.17 (linux) Cancel-Lock: sha1:hnyGO6Px/FgkQAYAv17wEjHObD0= X-Hashcash: 1:20:050804:ding@gnus.org::TspZBjN8rGa252ti:00000igp X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60711 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60711 --=-=-= Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable >>>>> In Maciej Matysiak wrote: > It has just happened again. Now I set debug-on-error and saved > the buffer (attached). It seems, that there's problem with the "=F3" > character, it's not encoded in iso-8859-2 like the rest of polish > characters in that word. (let ((mm-coding-system-priorities '(iso-8859-2))) (nnrss-mime-encode-string "=F3")) =3D> "=3D?iso-8859-2?Q?=3DF3?=3D" Hmm, there may be another real cause. I think two or more charsets were required to encode the text then. In such a case, the UTF-8 charset will be helpful. Aren't you using the Mule-UCS XEmacs package? > Debugger entered--Lisp error: (error "Can't rfc2047-encode `... The text in question seems to have been modified by the debugger or something. > Anyways, I'd be really happy if gnus would update the number of > messages in each grup despite the rss error. Now it's just displays > "Can't rfc2047-encode ..." error and stops. This is a last resort, though. --=-=-= Content-Type: text/x-patch; charset=iso-8859-2 Content-Disposition: inline --- nnrss.el~ 2005-07-05 22:36:17 +0000 +++ nnrss.el 2005-08-04 10:54:28 +0000 @@ -518,7 +518,10 @@ (delete-region (point) (point-max)) (let ((rfc2047-encoding-type 'mime) rfc2047-encode-max-chars) - (rfc2047-encode-region (point-min) (point-max))) + (condition-case nil + (rfc2047-encode-region (point-min) (point-max)) + (error + (delete-region (point-min) (point-max))))) (goto-char (point-min)) (while (search-forward "\n" nil t) (delete-backward-char 1)) --=-=-=--