not proper for decoding `iso-2022-jp-2'.
* mcs-20.el (mime-charset-coding-system-alist): Use coding system
`x-ctext' for MIME charset `x-ctext' if it is defined.
+1999-04-11 Tanaka Akira <akr@jaist.ac.jp>
+
+ * mcs-e20.el (x-ctext): Define coding system `x-ctext' if `ctext' is
+ not proper for decoding `iso-2022-jp-2'.
+
+ * mcs-20.el (mime-charset-coding-system-alist): Use coding system
+ `x-ctext' for MIME charset `x-ctext' if it is defined.
+
1999-04-09 Tanaka Akira <akr@jaist.ac.jp>
* static.el: Add doc-strings.
(defcustom mime-charset-coding-system-alist
(let ((rest
- '((us-ascii . raw-text)
+ `((us-ascii . raw-text)
(gb2312 . cn-gb-2312)
(cn-gb . cn-gb-2312)
(iso-2022-jp-2 . iso-2022-7bit-ss2)
(tis-620 . tis620)
(windows-874 . tis620)
- (x-ctext . ctext)
+ ,@(unless (coding-system-p 'x-ctext)
+ '((x-ctext . ctext)))
(unknown . undecided)
(x-unknown . undecided)
))
;;; Code:
+(eval-when-compile (require 'static))
+
(defsubst encode-mime-charset-region (start end charset &optional lbt)
"Encode the text between START and END as MIME CHARSET."
(let (cs)
dest)
))
+(static-when (string= (decode-coding-string "\e.A\eN!" 'ctext) "\eN!")
+ (make-coding-system
+ 'x-ctext 2 ?f
+ "ISO 2022 based generic encoding for decoding unknown messages."
+ '((ascii t) (latin-iso8859-1 t) t t
+ shoft ascii-eol ascii-cntl seven locking-shift single-shift nil nil nil
+ init-bol nil nil)
+ '((safe-charsets . t))))
+
+
;;; @ end
;;;