Commit 0a327afe authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix the 'T' command in Dired with non_ASCII file names

* lisp/dired-aux.el (dired-do-chxxx): Bind coding-system-for-write
to correctly encode file names passed to the invoked PROGRAM.
parent f50e6415
......@@ -279,6 +279,14 @@ List has a form of (file-name full-file-name (attribute-list))."
((eq op-symbol 'chgrp)
(operation (concat program " " new-attribute))
;; When file-name-coding-system is set to something different
;; from locale-coding-system, leaving the encoding
;; determination to call-process will do the wrong thing,
;; because the arguments in this case are file names, not
;; just some arbitrary text. (This must be bound last, to
;; avoid adverse effects on any of the preceding forms.)
(coding-system-for-write (or file-name-coding-system
(setq failures
(dired-bunch-files 10000
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment