Skip to content

Commit

Permalink
Fix Encoding on wrong line.
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyjajp authored and jralls committed Apr 30, 2023
1 parent 0ecafc9 commit 450a634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/configure-totd.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ execute_process(
COMMAND ${CMAKE_C_COMPILER} -E -P -x c -DN_\(x\)=x -o ${TOTD}.tmp ${SRC}
)

file(STRINGS ${TOTD}.tmp TIP_OF_THE_DAY_LINES)
file(STRINGS ${TOTD}.tmp TIP_OF_THE_DAY_LINES ENCODING UTF-8)
set(TOTD_OUTPUT "")
foreach(line ${TIP_OF_THE_DAY_LINES} ENCODING UTF-8)
foreach(line ${TIP_OF_THE_DAY_LINES})
string(REGEX REPLACE "^ *\"" "" line2 "${line}")
string(REGEX REPLACE "\" *$" "" line3 "${line2}")
file(APPEND ${DST_DIR}/${TOTD} "${line3}\n")
Expand Down

0 comments on commit 450a634

Please sign in to comment.