(quoted-printable-decode-string): Use
authorDave Love <fx@gnu.org>
Fri, 30 May 2003 10:42:35 +0000 (10:42 +0000)
committerDave Love <fx@gnu.org>
Fri, 30 May 2003 10:42:35 +0000 (10:42 +0000)
mm-with-unibyte-buffer.

lisp/qp.el

index 149d30a..b3dfdce 100644 (file)
@@ -81,8 +81,10 @@ them into characters should be done separately."
 
 (defun quoted-printable-decode-string (string &optional coding-system)
   "Decode the quoted-printable encoded STRING and return the result.
-If CODING-SYSTEM is non-nil, decode the region with coding-system."
-  (with-temp-buffer
+If CODING-SYSTEM is non-nil, decode the region with coding-system.
+Use of CODING-SYSTEM is deprecated; this function should deal with
+raw bytes, and coding conversion should be done separately."
+  (mm-with-unibyte-buffer
     (insert string)
     (quoted-printable-decode-region (point-min) (point-max) coding-system)
     (buffer-string)))