Function: set-file-name-coding-system
set-file-name-coding-system is an interactive and byte-compiled
function defined in mule.el.gz.
Signature
(set-file-name-coding-system CODING-SYSTEM)
Documentation
Set coding system for decoding and encoding file names to CODING-SYSTEM.
It actually just set the variable file-name-coding-system (which see)
to CODING-SYSTEM.
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/international/mule.el.gz
(defun set-file-name-coding-system (coding-system)
"Set coding system for decoding and encoding file names to CODING-SYSTEM.
It actually just set the variable `file-name-coding-system' (which see)
to CODING-SYSTEM."
(interactive "zCoding system for file names (default nil): ")
(check-coding-system coding-system)
(if (and coding-system
(not (coding-system-get coding-system :ascii-compatible-p))
(not (coding-system-get coding-system :suitable-for-file-name)))
(error "%s is not suitable for file names" coding-system))
(setq file-name-coding-system coding-system))