diff options
author | Kenichi Handa <[email protected]> | 2002-07-09 02:42:06 +0000 |
---|---|---|
committer | Kenichi Handa <[email protected]> | 2002-07-09 02:42:06 +0000 |
commit | 82e22b5719766011d2ff9281a21b720130c32ce1 (patch) | |
tree | 7e39d7a5886c221772573aca27ccef51c4076727 | |
parent | 282b5fb725ff816389fdd857a5792e8d2a299c01 (diff) |
(insert-directory): Be sure to bind
coding-system-for-write to the just decided
coding-system-for-read.
-rw-r--r-- | lisp/ChangeLog | 6 | ||||
-rw-r--r-- | lisp/files.el | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7289f6573a..17eb7fb182 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2002-07-09 Kenichi Handa <[email protected]> + + * files.el (insert-directory): Be sure to bind + coding-system-for-write to the just decided + coding-system-for-read. + 2002-07-09 Kim F. Storm <[email protected]> * ido.el (ido-make-merged-file-list): Move fully matching item to diff --git a/lisp/files.el b/lisp/files.el index 27ecf1901d..f457b85e18 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3910,12 +3910,12 @@ If WILDCARD, it also runs the shell specified by `shell-file-name'." ;; Read the actual directory using `insert-directory-program'. ;; RESULT gets the status code. - (let ((coding-system-for-read - (and enable-multibyte-characters - (or file-name-coding-system - default-file-name-coding-system))) - ;; This is to control encoding the arguments in call-process. - (coding-system-for-write coding-system-for-read)) + (let* ((coding-system-for-read + (and enable-multibyte-characters + (or file-name-coding-system + default-file-name-coding-system))) + ;; This is to control encoding the arguments in call-process. + (coding-system-for-write coding-system-for-read)) (setq result (if wildcard ;; Run ls in the directory part of the file pattern |