diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2017-02-01 13:48:02 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2017-02-01 13:49:11 +0100 |
commit | 5d61ef0de9a3f5b1be9e93465cb88aae995975ba (patch) | |
tree | ab1620230eefe195434295995a87ff58a501a9f5 /lisp/gnus/nnmail.el | |
parent | d805757618092d5d46b8a95d2a046146c4916dc6 (diff) | |
download | emacs-5d61ef0de9a3f5b1be9e93465cb88aae995975ba.tar.gz |
Revert "DOn't use string-as-unibyte in Gnus"
This reverts commit d1c931009004aef847105b7bac6b6ffafd985b82.
Not all the cases where we had string-as-unibyte were characters,
so this needs to be considered more thoroughly before being redone.
Diffstat (limited to 'lisp/gnus/nnmail.el')
-rw-r--r-- | lisp/gnus/nnmail.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el index 224d5db5427..3f2e08171e0 100644 --- a/lisp/gnus/nnmail.el +++ b/lisp/gnus/nnmail.el @@ -665,7 +665,7 @@ nn*-request-list should have been called before calling this function." (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) @@ -1251,9 +1251,8 @@ Return the number of characters in the body." (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"))) |