branch: externals/plz
commit f34efa052c52857a59db69348860bb95e2abbf88
Author: Adam Porter <[email protected]>
Commit: Adam Porter <[email protected]>
Fix: set-buffer-multibyte nil for binary
---
plz.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/plz.el b/plz.el
index 100015bb7a..097e43d420 100644
--- a/plz.el
+++ b/plz.el
@@ -417,6 +417,8 @@ NOQUERY is passed to `make-process', which see."
((or 'binary 'string)
(lambda ()
(let ((coding-system (or (plz--coding-system) 'utf-8)))
+ (pcase as
+ ('binary (set-buffer-multibyte nil)))
(plz--narrow-to-body)
(when decode
(decode-coding-region (point) (point-max)
coding-system))
@@ -485,6 +487,8 @@ Uses `call-process' to call curl synchronously."
((or `nil 'string 'binary)
(lambda ()
(let ((coding-system (or (plz--coding-system)
'utf-8)))
+ (pcase as
+ ('binary (set-buffer-multibyte nil)))
(plz--narrow-to-body)
(when decode
(decode-coding-region (point) (point-max)
coding-system))