From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: "Can't rfc2047-encode" error.
Date: Thu, 04 Aug 2005 19:55:53 +0900 [thread overview]
Message-ID: <b4m64um0y4m.fsf@jpl.org> (raw)
In-Reply-To: <hh64umnjqj.fsf@blah.pl>
[-- Attachment #1: Type: text/plain, Size: 997 bytes --]
>>>>> In <hh64umnjqj.fsf@blah.pl> 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 "ó"
> 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 "ó"))
=> "=?iso-8859-2?Q?=F3?="
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.
[-- Attachment #2: Type: text/x-patch, Size: 504 bytes --]
--- 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))
next prev parent reply other threads:[~2005-08-04 10:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-11 12:43 Maciej Matysiak
2005-07-11 13:57 ` Katsumi Yamaoka
2005-08-04 9:18 ` Maciej Matysiak
2005-08-04 10:55 ` Katsumi Yamaoka [this message]
2005-08-04 11:31 ` Maciej Matysiak
2005-08-04 12:30 ` Katsumi Yamaoka
2005-08-04 13:58 ` Maciej Matysiak
2005-08-05 6:58 ` Katsumi Yamaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4m64um0y4m.fsf@jpl.org \
--to=yamaoka@jpl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).