Skip to content

Commit 450a634

Browse files
yyyjajpjralls
authored andcommitted
Fix Encoding on wrong line.
1 parent 0ecafc9 commit 450a634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/configure-totd.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ execute_process(
1515
COMMAND ${CMAKE_C_COMPILER} -E -P -x c -DN_\(x\)=x -o ${TOTD}.tmp ${SRC}
1616
)
1717

18-
file(STRINGS ${TOTD}.tmp TIP_OF_THE_DAY_LINES)
18+
file(STRINGS ${TOTD}.tmp TIP_OF_THE_DAY_LINES ENCODING UTF-8)
1919
set(TOTD_OUTPUT "")
20-
foreach(line ${TIP_OF_THE_DAY_LINES} ENCODING UTF-8)
20+
foreach(line ${TIP_OF_THE_DAY_LINES})
2121
string(REGEX REPLACE "^ *\"" "" line2 "${line}")
2222
string(REGEX REPLACE "\" *$" "" line3 "${line2}")
2323
file(APPEND ${DST_DIR}/${TOTD} "${line3}\n")

0 commit comments

Comments
 (0)