]> git.eshelyaron.com Git - emacs.git/commitdiff
(sha1-string-external): Use set-buffer-multibyte rather than
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 12 Mar 2008 20:48:46 +0000 (20:48 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 12 Mar 2008 20:48:46 +0000 (20:48 +0000)
setting default-enable-multibyte-characters.

lisp/ChangeLog
lisp/sha1.el

index cc42fababf7cd484620bc87e6d9772231d83e281..d8f9b361527a5f0e3036068c413eec41199eb21b 100644 (file)
@@ -1,5 +1,8 @@
 2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * sha1.el (sha1-string-external): Use set-buffer-multibyte rather than
+       setting default-enable-multibyte-characters.
+
        * emulation/viper-util.el (viper-file-remote-p): Remove, unused.
 
        * comint.el: Fix up indentation and comment style.  Remove `function'.
index c70b99c10b0e90e4f5ef89a8e17c95061e085ef0..de2f0636b7c305039a65a7669bdd5559d912ed25 100644 (file)
@@ -88,16 +88,17 @@ If this variable is set to nil, use internal function only."
   :group 'sha1)
 
 (defun sha1-string-external (string &optional binary)
-  (let (prog args digest default-enable-multibyte-characters)
+  (let (prog args digest)
     (if (consp sha1-program)
        (setq prog (car sha1-program)
              args (cdr sha1-program))
       (setq prog sha1-program
            args nil))
     (with-temp-buffer
+      (set-buffer-multibyte nil)
       (insert string)
       (apply (function call-process-region)
-            (point-min)(point-max)
+            (point-min) (point-max)
             prog t t nil args)
       ;; SHA1 is 40 bytes long in hexadecimal form.
       (setq digest (buffer-substring (point-min)(+ (point-min) 40))))