Skip to content

Commit

Permalink
Force english in pg_config command
Browse files Browse the repository at this point in the history
Force English in the pg_config command executed by cmake to avoid unexpected building errors.
Fixes #7257
  • Loading branch information
MiguelTubio authored and svenklemm committed Sep 10, 2024
1 parent 8333128 commit 25de828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .unreleased/pr_7258
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixes: #7258 Force English in the pg_config command executed by cmake to avoid unexpected building errors
Thanks: @MiguelTubio for reporting and fixing a Windows build error
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function(GET_PG_CONFIG var)
# Only call pg_config if the variable didn't already have a value.
if(NOT ${var})
execute_process(
COMMAND ${PG_CONFIG} ${ARGN}
COMMAND ${CMAKE_COMMAND} -E env LC_MESSAGES=C ${PG_CONFIG} ${ARGN}
OUTPUT_VARIABLE _temp
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
Expand Down

0 comments on commit 25de828

Please sign in to comment.