setting default-enable-multibyte-characters.
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'.
: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))))