Variable: default-file-name-coding-system

default-file-name-coding-system is a variable defined in fileio.c.

Value

utf-8-unix

Documentation

Default coding system for encoding file names.

This variable is used only when file-name-coding-system is nil.

This variable is set/changed by the command set-language-environment. User should not set this variable manually, instead use file-name-coding-system to get a constant encoding of file names regardless of the current language environment.

On MS-Windows, the value of this variable is largely ignored if w32-unicode-filenames (which see) is non-nil. Emacs on Windows behaves as if file names were encoded in utf-8.

Probably introduced at or before Emacs version 23.2.

Source Code

// Defined in /usr/src/emacs/src/fileio.c
  DEFVAR_LISP ("default-file-name-coding-system",
	       Vdefault_file_name_coding_system,
	       doc: /* Default coding system for encoding file names.
This variable is used only when `file-name-coding-system' is nil.

This variable is set/changed by the command `set-language-environment'.
User should not set this variable manually,
instead use `file-name-coding-system' to get a constant encoding
of file names regardless of the current language environment.

On MS-Windows, the value of this variable is largely ignored if
`w32-unicode-filenames' (which see) is non-nil.  Emacs on Windows
behaves as if file names were encoded in `utf-8'.  */);