* Invalid coding system: unicode-1-1-utf-7
@ 2005-08-03 10:21 Jochen Küpper
2005-08-04 2:42 ` Katsumi Yamaoka
0 siblings, 1 reply; 5+ messages in thread
From: Jochen Küpper @ 2005-08-03 10:21 UTC (permalink / raw)
In my .gnus I have
,----
| (add-to-list 'mm-charset-synonym-alist (if (and (not (mm-coding-system-p 'unicode-1-1-utf-7))
| (mm-coding-system-p 'utf-7))
| '(unicode-1-1-utf-7 . utf-7)))
`----
and that seems to work correctly:
,----[ C-h v mm-charset-synonym-alist RET ]
| mm-charset-synonym-alist's value is
| ((unicode-1-1-utf-7 . utf-7)
| (big5-hkscs . big5)
| (unicode . utf-16-le)
| (ks_c_5601-1987 . cp949))
|
|
| A mapping from invalid charset names to the real charset names.
|
| Defined in `mm-util'.
|
| [back]
`----
However, when sending (S o m) messages with the unicode-1-1-utf-7
coding system, Gnus gives the following error (and stops):
,----
| mm-encode-body: Invalid coding system: unicode-1-1-utf-7
`----
No Gnus v0.4
GNU Emacs 22.0.50.22 (i686-pc-linux-gnu, Motif Version 2.2.2) of 2005-07-27
Anything I am doing wrong or overlooking here?
Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D
(Part 3 you find in my messages before fall 2003.)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Invalid coding system: unicode-1-1-utf-7
2005-08-03 10:21 Invalid coding system: unicode-1-1-utf-7 Jochen Küpper
@ 2005-08-04 2:42 ` Katsumi Yamaoka
2005-08-04 3:05 ` Katsumi Yamaoka
0 siblings, 1 reply; 5+ messages in thread
From: Katsumi Yamaoka @ 2005-08-04 2:42 UTC (permalink / raw)
Cc: ding
[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]
>>>>> In <9eek9bqq1j.fsf@gowron.rz-berlin.mpg.de> Jochen Küpper wrote:
> In my .gnus I have
> ,----
>| (add-to-list 'mm-charset-synonym-alist (if (and (not (mm-coding-system-p 'unicode-1-1-utf-7))
>| (mm-coding-system-p 'utf-7))
>| '(unicode-1-1-utf-7 . utf-7)))
> `----
I loaded utf-7.el and tried it.
> However, when sending (S o m) messages with the unicode-1-1-utf-7
> coding system, Gnus gives the following error (and stops):
> ,----
>| mm-encode-body: Invalid coding system: unicode-1-1-utf-7
> `----
Though I couldn't find the way to reproduce it using `S o m', it
seems to be the same to encode the part like the following:
<# part type="text/plain" charset=unicode-1-1-utf-7 disposition=inline>
jugemujugemugokonosurikirekaijarisuigyonosuigyomatsuungyomatsu...
Gnus still confuses `charset' with `coding system' in several
places I think, and the problem is caused by one of them. Does
the following patch help?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 320 bytes --]
--- mm-bodies.el~ 2005-07-05 22:36:09 +0000
+++ mm-bodies.el 2005-08-04 02:39:45 +0000
@@ -93,6 +93,7 @@
(save-excursion
(if charset
(progn
+ (setq charset (mm-charset-to-coding-system charset))
(mm-encode-coding-region (point-min) (point-max) charset)
charset)
(goto-char (point-min))
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-08-05 6:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-03 10:21 Invalid coding system: unicode-1-1-utf-7 Jochen Küpper
2005-08-04 2:42 ` Katsumi Yamaoka
2005-08-04 3:05 ` Katsumi Yamaoka
[not found] ` <b4m3bpqpfkx.fsf-NvgVpDro27E@public.gmane.org>
2005-08-04 20:33 ` Jochen Küpper
2005-08-05 6:58 ` Katsumi Yamaoka
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).