summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Jazeix <jazeix@gmail.com>2020-10-19 17:53:56 (GMT)
committerJohnny Jazeix <jazeix@gmail.com>2020-10-19 17:53:56 (GMT)
commitc92b96234acfe142df88cd1ba5815373721d5c22 (patch)
tree93fdb9f5e051fecccaff168ca9cc9744fd945145
parent52be712ad83ecd66d9f975309bd223724bd227ac (diff)
downloadCMake-c92b96234acfe142df88cd1ba5815373721d5c22.zip
CMake-c92b96234acfe142df88cd1ba5815373721d5c22.tar.gz
CMake-c92b96234acfe142df88cd1ba5815373721d5c22.tar.bz2
CPack/NSIS: Template file in UTF-8 BOM to support Unicode
Fixes: #21318
-rw-r--r--Help/release/dev/cpack-nsis-utf-8-bom.rst6
-rw-r--r--Modules/Internal/CPack/NSIS.template.in2
2 files changed, 7 insertions, 1 deletions
diff --git a/Help/release/dev/cpack-nsis-utf-8-bom.rst b/Help/release/dev/cpack-nsis-utf-8-bom.rst
new file mode 100644
index 0000000..b2a20ce
--- /dev/null
+++ b/Help/release/dev/cpack-nsis-utf-8-bom.rst
@@ -0,0 +1,6 @@
+cpack-nsis-utf8-bom
+-------------------
+
+* The :cpack_gen:`CPack NSIS Generator` now handles correctly Unicode characters.
+ If you want to have a ``CPACK_RESOURCE_FILE_LICENSE`` with UTF-8 characters
+ it needs to be encoded in UTF-8 BOM.
diff --git a/Modules/Internal/CPack/NSIS.template.in b/Modules/Internal/CPack/NSIS.template.in
index 6009ce0..b448c76 100644
--- a/Modules/Internal/CPack/NSIS.template.in
+++ b/Modules/Internal/CPack/NSIS.template.in
@@ -1,4 +1,4 @@
-; CPack install script designed for a nmake build
+; CPack install script designed for a nmake build
;--------------------------------
; You must define these values