aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorEli Zaretskii2025-08-30 07:18:37 -0400
committerEli Zaretskii2025-08-30 07:18:37 -0400
commitaf4a5e2b4ad080ad5d3b714286e7aca9339288b0 (patch)
treee2392bd5feba14b7aee1d65d618c843e48be0261 /doc/misc
parente1af5d70e23ca6c90c35afd5f6c3e4eeb3c1a932 (diff)
parent3d2a8186793043805fd3d71ef5aa70e0a3ccc603 (diff)
downloademacs-af4a5e2b4ad080ad5d3b714286e7aca9339288b0.tar.gz
emacs-af4a5e2b4ad080ad5d3b714286e7aca9339288b0.zip
Merge from origin/emacs-30
3d2a8186793 * doc/misc/efaq-w32.texi (UTF-8 encoding): New section (b... ec50d775acf ; * doc/misc/flymake.texi (Finding diagnostics): Fix a ty... 293e258a1b2 * doc/emacs/screen.texi (Mode Line): Fix reference. 8eb192c23df ; * admin/make-tarball.txt: Update the "Web pages" sectio...
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/efaq-w32.texi64
-rw-r--r--doc/misc/flymake.texi2
2 files changed, 65 insertions, 1 deletions
diff --git a/doc/misc/efaq-w32.texi b/doc/misc/efaq-w32.texi
index e50716ff654..5c24364286d 100644
--- a/doc/misc/efaq-w32.texi
+++ b/doc/misc/efaq-w32.texi
@@ -913,6 +913,7 @@ The doc string contains a list of the system sounds you can use.
913* Multilingual fonts:: 913* Multilingual fonts::
914* Font menu:: 914* Font menu::
915* Line ends:: 915* Line ends::
916* UTF-8 encoding::
916@end menu 917@end menu
917 918
918@node Font names 919@node Font names
@@ -1191,6 +1192,69 @@ recent versions of Emacs, this is seldom useful for existing files,
1191but can still be used to influence the choice of line ends for newly 1192but can still be used to influence the choice of line ends for newly
1192created files. 1193created files.
1193 1194
1195@node UTF-8 encoding
1196@section Can I use UTF-8 as default encoding on MS-Windows?
1197@cindex UTF-8 as default encoding on Windows
1198@cindex codepage 65001 support in Emacs
1199
1200Recent versions of MS-Windows (Windows 10 since build 1803, and Windows
120111 or later versions) allow to use UTF-8 (a.k.a.@: ``codepage 65001'')
1202as the default system codepage. As of this writing, this is still an
1203experimental feature, even in Windows 11, and is disabled by default.
1204On Windows 11 you can enable it as follows:
1205
1206@enumerate
1207@item
1208Open Settings.
1209
1210@item
1211Select ``Time & Language'', then ``Language & region''.
1212
1213@item
1214Click on ``Administrative language settings''.
1215
1216@item
1217On the dialog that pops up click ``Change system locale...''
1218
1219@item
1220In the ``Region Settings'' dialog that pops up, check the check-box
1221labeled ``Beta: Use Unicode UTF-8 for worldwide language support'', then
1222confirm by clicking ``OK'' to both dialogs.
1223@end enumerate
1224
1225@cindex UCRT runtime library
1226@cindex MSVCRT runtime library
1227Emacs supports this feature starting from version 30.2, but only when
1228running on the versions of Windows that provide this feature, and only
1229if the Emacs executable was linked against the @samp{UCRT} library as
1230the Windows C runtime, not against the older @samp{MSVCRT}. This is
1231because the C functions that deal with non-ASCII characters, as
1232implemented by @samp{MSVCRT}, don't support UTF-8 as the multibyte
1233encoding of non-ASCII characters. (Which runtime to link against is
1234determined by the person who built your Emacs binary. Note that using
1235Emacs linked against @samp{UCRT} needs all of the libraries loaded by
1236Emacs dynamically, such as GnuTLS, image libraries like @samp{rsvg},
1237Tree-sitter, and all the others, to be also linked against @samp{UCRT},
1238otherwise subtle problems could happen when dealing with non-ASCII
1239characters and strings.)
1240
1241If you have an Emacs linked against @samp{UCRT}, and you turned on the
1242UTF-8 support in Windows as described above, you can customize Emacs to
1243use UTF-8 as your default encoding, e.g., by adding
1244
1245@lisp
1246 (prefer-coding-system 'utf-8)
1247@end lisp
1248
1249@noindent
1250to your init file, or by using the @samp{UTF-8} language environment
1251(@pxref{Language Environments,,, emacs, The GNU Emacs Manual}) in your
1252Emacs sessions.
1253
1254Please be aware that, since this feature of Windows is still in beta,
1255there could be some subtle issues with it. So we do not yet recommend
1256to turn this on, unless you feel adventurous.
1257
1194@c ------------------------------------------------------------ 1258@c ------------------------------------------------------------
1195@node Printing 1259@node Printing
1196@chapter Printing 1260@chapter Printing
diff --git a/doc/misc/flymake.texi b/doc/misc/flymake.texi
index cc364813f8b..42935703c11 100644
--- a/doc/misc/flymake.texi
+++ b/doc/misc/flymake.texi
@@ -152,7 +152,7 @@ variables})
152 152
153@cindex next and previous diagnostic 153@cindex next and previous diagnostic
154If the diagnostics are outside the visible region of the buffer, 154If the diagnostics are outside the visible region of the buffer,
155@code{flymake-goto-next-error} and @code{flymake-goto-prev-error} are 155@code{flymake-goto-next-error} and @code{flymake-goto-prev-error}
156let you navigate to the next/previous erroneous regions, 156let you navigate to the next/previous erroneous regions,
157respectively. It might be a good idea to map them to @kbd{M-n} and 157respectively. It might be a good idea to map them to @kbd{M-n} and
158@kbd{M-p} in @code{flymake-mode}, by adding to your init file: 158@kbd{M-p} in @code{flymake-mode}, by adding to your init file: