;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc.
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;; Version: $Revision: 0.11 $
+;; Version: $Revision: 0.12 $
;; Keywords: encoded-word, MIME, multilingual, header, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
;;;
(defconst eword-encode-RCS-ID
- "$Id: eword-encode.el,v 0.11 1997-03-01 02:07:00 tmorioka Exp $")
+ "$Id: eword-encode.el,v 0.12 1997-03-01 04:09:16 tmorioka Exp $")
(defconst eword-encode-version (get-version-string eword-encode-RCS-ID))
(defun tm-eword::parse-lc-word (str)
(let* ((chr (sref str 0))
(lc (tm-eword::char-type chr))
- (i (char-length chr))
+ (i (char-bytes chr))
(len (length str))
)
(while (and (< i len)
(setq chr (sref str i))
(eq lc (tm-eword::char-type chr))
)
- (setq i (+ i (char-length chr)))
+ (setq i (+ i (char-bytes chr)))
)
(cons (cons lc (substring str 0 i)) (substring str i))
))
(str "") nstr)
(while (and (< p len)
(progn
- (setq np (+ p (char-length (sref string p))))
+ (setq np (+ p (char-bytes (sref string p))))
(setq nstr (substring string 0 np))
(setq ret (tm-eword::encoded-word-length
(cons nstr (cdr rword))