1
0
miroir de https://git.tukaani.org/xz.git synchronisé 2026-04-05 07:38:00 +00:00

CMake: Use \040 instead of \x20 for a space

This is for consistency with 4c81c9611f8b2e1ad65eb7fa166afc570c58607e
where \040 has to be used because \0x20F gets interpret at three hex
digits. Octals escapes are never longer than three digits.
Cette révision appartient à :
Lasse Collin 2024-06-15 18:07:04 +03:00
Parent e8854b6bdc
révision 7422333819

Voir le fichier

@ -215,7 +215,7 @@ if((MINGW OR CYGWIN OR MSYS) AND (
# to worry how to pass different flags to windres and the C compiler. # to worry how to pass different flags to windres and the C compiler.
# Keep the original PACKAGE_NAME intact for generation of liblzma.pc. # Keep the original PACKAGE_NAME intact for generation of liblzma.pc.
string(APPEND CMAKE_RC_FLAGS " --use-temp-file") string(APPEND CMAKE_RC_FLAGS " --use-temp-file")
string(REPLACE " " "\\x20" PACKAGE_NAME_DEFINITION "${PACKAGE_NAME}") string(REPLACE " " "\\040" PACKAGE_NAME_DEFINITION "${PACKAGE_NAME}")
# Use octal because "Program Files" would become \x20F. # Use octal because "Program Files" would become \x20F.
string(REPLACE " " "\\040" LOCALEDIR_DEFINITION string(REPLACE " " "\\040" LOCALEDIR_DEFINITION