Skip to content

Commit b6db666

Browse files
committed
doc: use C locale when generating manual pages
Otherwise, e.g. month could be in other language when LC_TIME was set to such locale. Fixes: Wide character in print at /usr/bin/help2man line 672.
1 parent de72e8f commit b6db666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ macro(create_manpage BINARY)
174174
set(H2M_ARGS "")
175175
endif()
176176
add_custom_command(TARGET ${BINARY} POST_BUILD
177-
COMMAND ${HELP2MAN} --no-info --section 1 ${H2M_ARGS}
177+
COMMAND env LC_ALL=C ${HELP2MAN} --no-info --section 1 ${H2M_ARGS}
178178
${CMAKE_CURRENT_BINARY_DIR}/${BINARY}
179179
> ${BINARY}.1 || rm -f ${BINARY}.1
180180
COMMENT "Generating ${BINARY} man page"

0 commit comments

Comments
 (0)