(canlock-sha1
(concat opad
(canlock-sha1
- (concat ipad (encode-coding-string message-id 'utf-8))))))))
+ (concat ipad (string-as-unibyte message-id))))))))
(defun canlock-narrow-to-header ()
"Narrow the buffer to the head of the message."
(encode-coding-string
title coding))
body content))
- (setq eheader (encode-coding-string
- (buffer-string) 'utf-8)
+ (setq eheader (string-as-unibyte (buffer-string))
body content)))
(erase-buffer)
(mm-disable-multibyte)
(while (not (eobp))
(ignore-errors
(push (cons
- (encode-coding-string
+ (string-as-unibyte
(buffer-substring
(point)
(progn
(skip-chars-forward "^ \t")
- (point)))
- 'utf-8)
+ (point))))
(let ((last (read cur)))
(cons (read cur) last)))
groups))
(while (not (eobp))
(ignore-errors
(push (cons
- (encode-coding-string
+ (string-as-unibyte
(if (eq (char-after) ?\")
(read cur)
(let ((p (point)) (name ""))
(skip-chars-forward "^ \t\\\\")
(setq name (concat name (buffer-substring
p (point)))))
- name))
- 'utf-8)
+ name)))
(let ((last (read cur)))
(cons (read cur) last)))
groups))
(while lists
(setq killed (car lists))
(while killed
- (gnus-sethash (encode-coding-string (car killed) 'utf-8) nil hashtb)
+ (gnus-sethash (string-as-unibyte (car killed)) nil hashtb)
(setq killed (cdr killed)))
(setq lists (cdr lists)))))
(dolist (elem gnus-newsrc-alist)
;; Protect against broken .newsrc.el files.
(when (car elem)
- (setcar elem (encode-coding-string (car elem) 'utf-8))))
+ (setcar elem (string-as-unibyte (car elem)))))
(gnus-make-hashtable-from-newsrc-alist)
(when (file-newer-than-file-p file ding-file)
;; Old format quick file
(set-buffer-multibyte nil)
(cond
((cdr (assq 'buffer cont))
- (insert (encode-coding-string
+ (insert (string-as-unibyte
(with-current-buffer (cdr (assq 'buffer cont))
- (buffer-string))
- 'utf-8)))
+ (buffer-string)))))
((and filename
(not (equal (cdr (assq 'nofile cont)) "yes")))
(let ((coding-system-for-read mm-binary-coding-system))
(if (eq (car method) 'nntp)
(while (not (eobp))
(ignore-errors
- (push (encode-coding-string
+ (push (string-as-unibyte
(gnus-group-full-name
(buffer-substring
(point)
(progn
(skip-chars-forward "^ \t")
(point)))
- method)
- 'utf-8)
+ method))
groups))
(forward-line))
(while (not (eobp))
(ignore-errors
- (push (encode-coding-string
+ (push (string-as-unibyte
(if (eq (char-after) ?\")
(gnus-group-full-name (read cur) method)
(let ((p (point)) (name ""))
(skip-chars-forward "^ \t\\\\")
(setq name (concat name (buffer-substring
p (point)))))
- (gnus-group-full-name name method)))
- 'utf-8)
+ (gnus-group-full-name name method))))
groups))
(forward-line)))))
groups))
(setq group (symbol-name group)))
(if (and (numberp (setq max (read buffer)))
(numberp (setq min (read buffer))))
- (push (list (encode-coding-string group 'utf-8) (cons min max))
+ (push (list (string-as-unibyte group) (cons min max))
group-assoc)))
(error nil))
(widen)
(insert (if (mm-multibyte-p)
(string-as-multibyte
(format " %s:%d" (caar group-alist) (cdar group-alist)))
- (encode-coding-string
- (format " %s:%d" (caar group-alist) (cdar group-alist))
- 'utf-8)))
+ (string-as-unibyte
+ (format " %s:%d" (caar group-alist) (cdar group-alist)))))
(setq group-alist (cdr group-alist)))
(insert "\n")))