emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/plz f34efa052c 48/81: Fix: set-buffer-multibyte nil for


From: ELPA Syncer
Subject: [elpa] externals/plz f34efa052c 48/81: Fix: set-buffer-multibyte nil for binary
Date: Wed, 11 May 2022 17:58:01 -0400 (EDT)

branch: externals/plz
commit f34efa052c52857a59db69348860bb95e2abbf88
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]