Files
CMake/Tests/RunCMake/execute_process/Encoding-windows.cmake
T
Brad King e1fc4b9b17 Tests/RunCMake/execute_process: Add test for ENCODING AUTO
On Windows the AUTO encoding is based on the console code page,
so run the test in an isolated console window.
2024-09-13 08:19:32 -04:00

8 lines
224 B
CMake

# Set the console code page.
execute_process(COMMAND cmd /c chcp ${CODEPAGE})
include(${CMAKE_CURRENT_LIST_DIR}/Encoding-common.cmake)
# Save our internal UTF-8 representation of the output.
file(WRITE "out.txt" "${out}")