summaryrefslogtreecommitdiffstats
path: root/Help/manual
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-09-13 15:49:50 (GMT)
committerBrad King <brad.king@kitware.com>2024-09-16 10:37:46 (GMT)
commite782811cfeb9dc9b7d014f436f778a0ae619129c (patch)
tree4d04123cc7d4bd76be740cb6be389732c1c45e0a /Help/manual
parent9a4533405beae781b1dbb68e9273242730c58fdb (diff)
downloadCMake-e782811cfeb9dc9b7d014f436f778a0ae619129c.zip
CMake-e782811cfeb9dc9b7d014f436f778a0ae619129c.tar.gz
CMake-e782811cfeb9dc9b7d014f436f778a0ae619129c.tar.bz2
execute_process: Change default ENCODING to UTF-8
Windows is heading toward making UTF-8 the preferred MBCS. As CMake's internal encoding, `UTF-8` is effectively equivalent to `NONE`, which was CMake's behavior prior to 3.15's accidental change to `AUTO`. Behavior of `ENCODING UTF-8` is independent of CMake's internal encoding, making it in principle a better default than `NONE`. Add policy CMP0176 for compatibility and to document the default's history. Fixes: #26262
Diffstat (limited to 'Help/manual')
-rw-r--r--Help/manual/cmake-policies.7.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Help/manual/cmake-policies.7.rst b/Help/manual/cmake-policies.7.rst
index e5284e9..85bb6ec 100644
--- a/Help/manual/cmake-policies.7.rst
+++ b/Help/manual/cmake-policies.7.rst
@@ -57,6 +57,7 @@ Policies Introduced by CMake 3.31
.. toctree::
:maxdepth: 1
+ CMP0176: execute_process() ENCODING is UTF-8 by default. </policy/CMP0176>
CMP0175: add_custom_command() rejects invalid arguments. </policy/CMP0175>
CMP0174: cmake_parse_arguments(PARSE_ARGV) defines a variable for an empty string after a single-value keyword. </policy/CMP0174>
CMP0173: The CMakeFindFrameworks module is removed. </policy/CMP0173>