mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Tests: Comment intentional uses of UTF-8 in .cmake sources
This commit is contained in:
@@ -837,7 +837,7 @@ run_cmake_command(E_cat_directory
|
||||
file(WRITE "${out}/first_file.txt" "first file to append\n")
|
||||
file(WRITE "${out}/second_file.txt" "second file to append\n")
|
||||
file(WRITE "${out}/empty_file.txt" "")
|
||||
file(WRITE "${out}/unicode_file.txt" "àéùç - 한국어") # Korean in Korean
|
||||
file(WRITE "${out}/unicode_file.txt" "àéùç - 한국어") # UTF-8: Korean in Korean
|
||||
run_cmake_command(E_cat_good_cat
|
||||
${CMAKE_COMMAND} -E cat "${out}/first_file.txt" "${out}/second_file.txt" "${out}/empty_file.txt" "${out}/unicode_file.txt")
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
set(intl "intl-ë®")
|
||||
set(intl "intl-ë®") # UTF-8
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
set(TEST_NAME "!§%&/ü:*😤~")
|
||||
set(TEST_NAME "!§%&/ü:*😤~") # UTF-8
|
||||
include(CMP0110-Common.cmake)
|
||||
|
||||
@@ -12,7 +12,7 @@ set(_input2 "Hello world!")
|
||||
string(HEX "${_input2}" _result2)
|
||||
assert_strequal("${_input2}" "${_result2}" "48656c6c6f20776f726c6421")
|
||||
|
||||
set(_input3 "Ash nazg durbatulûk\nAsh nazg gimbatul\nAsh nazg thrakatulûk\nAgh burzum-ishi krimpatul")
|
||||
set(_input3 "Ash nazg durbatulûk\nAsh nazg gimbatul\nAsh nazg thrakatulûk\nAgh burzum-ishi krimpatul") # UTF-8
|
||||
string(HEX "${_input3}" _result3)
|
||||
assert_strequal("${_input3}" "${_result3}" "417368206e617a6720647572626174756cc3bb6b0a417368206e617a672067696d626174756c0a417368206e617a6720746872616b6174756cc3bb6b0a416768206275727a756d2d69736869206b72696d706174756c")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user