aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2013-12-07 18:51:33 +0200
committerEli Zaretskii2013-12-07 18:51:33 +0200
commit7df14908a304c99289eaa314987f65565f94f4df (patch)
tree538c44ef604c1e488682adafd3ab1c68d7dbd607 /doc
parent577c8624d0f51de542c584570917b96aa155b04f (diff)
downloademacs-7df14908a304c99289eaa314987f65565f94f4df.tar.gz
emacs-7df14908a304c99289eaa314987f65565f94f4df.zip
Updated documentation.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/mule.texi15
-rw-r--r--doc/lispref/nonascii.texi10
2 files changed, 25 insertions, 0 deletions
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi
index ebddc46be94..6efbc2b7190 100644
--- a/doc/emacs/mule.texi
+++ b/doc/emacs/mule.texi
@@ -1130,6 +1130,21 @@ In the default language environment, non-@acronym{ASCII} characters in
1130file names are not encoded specially; they appear in the file system 1130file names are not encoded specially; they appear in the file system
1131using the internal Emacs representation. 1131using the internal Emacs representation.
1132 1132
1133@cindex file-name encoding, MS-Windows
1134@vindex w32-unicode-filenames
1135 When Emacs runs on MS-Windows versions that are descendants of the
1136NT family (Windows 2000, XP, Vista, Windows 7, and Windows 8), the
1137value of @code{file-name-coding-system} is largely ignored, as Emacs
1138by default uses APIs that allow to pass Unicode file names directly.
1139By contrast, on Windows 9X, file names are encoded using
1140@code{file-name-coding-system}, which should be set to the codepage
1141(@pxref{Coding Systems, codepage}) pertinent for the current system
1142locale. The value of the variable @code{w32-unicode-filenames}
1143controls whether Emacs uses the Unicode APIs when it calls OS
1144functions that accept file names. This variable is set by the startup
1145code to @code{nil} on Windows 9X, and to @code{t} on newer versions of
1146MS-Windows.
1147
1133 @strong{Warning:} if you change @code{file-name-coding-system} (or the 1148 @strong{Warning:} if you change @code{file-name-coding-system} (or the
1134language environment) in the middle of an Emacs session, problems can 1149language environment) in the middle of an Emacs session, problems can
1135result if you have already visited files whose names were encoded using 1150result if you have already visited files whose names were encoded using
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi
index 96adb629f37..4132c1f8de0 100644
--- a/doc/lispref/nonascii.texi
+++ b/doc/lispref/nonascii.texi
@@ -1108,6 +1108,16 @@ visited file name, saving may use the wrong file name, or it may get
1108an error. If such a problem happens, use @kbd{C-x C-w} to specify a 1108an error. If such a problem happens, use @kbd{C-x C-w} to specify a
1109new file name for that buffer. 1109new file name for that buffer.
1110 1110
1111@cindex file-name encoding, MS-Windows
1112 On Windows 2000 and later, Emacs by default uses Unicode APIs to
1113pass file names to the OS, so the value of
1114@code{file-name-coding-system} is largely ignored. Lisp applications
1115that need to encode or decode file names on the Lisp level should use
1116@code{utf-8} coding-system when @code{system-type} is
1117@code{windows-nt}; the conversion of UTF-8 encoded file names to the
1118encoding appropriate for communicating with the OS is performed
1119internally by Emacs.
1120
1111@node Lisp and Coding Systems 1121@node Lisp and Coding Systems
1112@subsection Coding Systems in Lisp 1122@subsection Coding Systems in Lisp
1113 1123