Mercurial > emacs
changeset 46263:edbc0e22f0cb
(insert-directory): Be sure to bind
coding-system-for-write to the just decided
coding-system-for-read.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 09 Jul 2002 02:41:40 +0000 |
parents | 0df96ec2ceb8 |
children | 5f6fed869030 |
files | lisp/files.el |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Tue Jul 09 00:43:51 2002 +0000 +++ b/lisp/files.el Tue Jul 09 02:41:40 2002 +0000 @@ -3910,12 +3910,12 @@ ;; 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