diff options
| author | Eli Zaretskii | 2013-12-07 18:51:33 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-12-07 18:51:33 +0200 |
| commit | 7df14908a304c99289eaa314987f65565f94f4df (patch) | |
| tree | 538c44ef604c1e488682adafd3ab1c68d7dbd607 /doc | |
| parent | 577c8624d0f51de542c584570917b96aa155b04f (diff) | |
| download | emacs-7df14908a304c99289eaa314987f65565f94f4df.tar.gz emacs-7df14908a304c99289eaa314987f65565f94f4df.zip | |
Updated documentation.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/mule.texi | 15 | ||||
| -rw-r--r-- | doc/lispref/nonascii.texi | 10 |
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 | |||
| 1130 | file names are not encoded specially; they appear in the file system | 1130 | file names are not encoded specially; they appear in the file system |
| 1131 | using the internal Emacs representation. | 1131 | using 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 | ||
| 1136 | NT family (Windows 2000, XP, Vista, Windows 7, and Windows 8), the | ||
| 1137 | value of @code{file-name-coding-system} is largely ignored, as Emacs | ||
| 1138 | by default uses APIs that allow to pass Unicode file names directly. | ||
| 1139 | By 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 | ||
| 1142 | locale. The value of the variable @code{w32-unicode-filenames} | ||
| 1143 | controls whether Emacs uses the Unicode APIs when it calls OS | ||
| 1144 | functions that accept file names. This variable is set by the startup | ||
| 1145 | code to @code{nil} on Windows 9X, and to @code{t} on newer versions of | ||
| 1146 | MS-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 |
| 1134 | language environment) in the middle of an Emacs session, problems can | 1149 | language environment) in the middle of an Emacs session, problems can |
| 1135 | result if you have already visited files whose names were encoded using | 1150 | result 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 | |||
| 1108 | an error. If such a problem happens, use @kbd{C-x C-w} to specify a | 1108 | an error. If such a problem happens, use @kbd{C-x C-w} to specify a |
| 1109 | new file name for that buffer. | 1109 | new 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 | ||
| 1113 | pass file names to the OS, so the value of | ||
| 1114 | @code{file-name-coding-system} is largely ignored. Lisp applications | ||
| 1115 | that 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 | ||
| 1118 | encoding appropriate for communicating with the OS is performed | ||
| 1119 | internally 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 | ||