summaryrefslogtreecommitdiff
path: root/Help/manual/cmake-language.7.rst
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2014-12-26 21:25:20 -0700
committerBrad King <brad.king@kitware.com>2015-01-16 09:39:32 -0500
commitcdc29c36084ccfa447f171a25de2336b0bd74edd (patch)
treebc4b58fe32900739e3602f01d34503792f3346dc /Help/manual/cmake-language.7.rst
parent2ece34516a6c4f99d27c42018b3548d0cb75e72e (diff)
downloadcmake-cdc29c36084ccfa447f171a25de2336b0bd74edd.tar.gz
Encoding: Switch to use UTF-8 internally by default on Windows.
This fixes several reported bugs about CMake not handling non-ascii paths on Windows. Practically, the use of some unicode characters may still be limited by the build or compiler tools. For example, a user may be limited by the build tools to using characters within the Windows ANSI code page (which can include non-ascii characters in the current system language).
Diffstat (limited to 'Help/manual/cmake-language.7.rst')
-rw-r--r--Help/manual/cmake-language.7.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Help/manual/cmake-language.7.rst b/Help/manual/cmake-language.7.rst
index 15c101f63f..5ec5858ff4 100644
--- a/Help/manual/cmake-language.7.rst
+++ b/Help/manual/cmake-language.7.rst
@@ -60,14 +60,16 @@ Syntax
Encoding
--------
-A CMake Language source file must be written in 7-bit ASCII text
-to be portable across all supported platforms. Newlines may be
+A CMake Language source file may be written in 7-bit ASCII text for
+maximum portability across all supported platforms. Newlines may be
encoded as either ``\n`` or ``\r\n`` but will be converted to ``\n``
as input files are read.
Note that the implementation is 8-bit clean so source files may
be encoded as UTF-8 on platforms with system APIs supporting this
-encoding. Furthermore, CMake 3.0 and above allow a leading UTF-8
+encoding. In addition, CMake 3.2 and above support source files
+encoded in UTF-8 on Windows (using UTF-16 to call system APIs).
+Furthermore, CMake 3.0 and above allow a leading UTF-8
`Byte-Order Mark`_ in source files.
.. _`Byte-Order Mark`: http://en.wikipedia.org/wiki/Byte_order_mark