Files
cmake/Tests/RunCMake/CommandLineTar/encoding-oem-gnutar.cmake
Alex Overchenko 21eb53e9eb tar: Add option to specify the encoding of archive pathnames
Use OEM by default for backward compatibility

Fixes: #26903
2026-03-11 08:44:44 +03:00

13 lines
365 B
CMake

set(OUTPUT_NAME "test.tar")
set(COMPRESSION_FLAGS cvf)
set(COMPRESSION_OPTIONS --format=gnutar --cmake-tar-encoding=OEM)
include(${CMAKE_CURRENT_LIST_DIR}/utf-8-paths.cmake)
set(DECOMPRESSION_FLAGS xvf)
set(DECOMPRESSION_OPTIONS --cmake-tar-encoding=OEM)
include(${CMAKE_CURRENT_LIST_DIR}/roundtrip.cmake)
check_magic("7573746172202000" OFFSET 257 LIMIT 8 HEX)