summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/CTest/cmCTestUpdateHandler.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx
index 40cc0cc445..d24d8f3801 100644
--- a/Source/CTest/cmCTestUpdateHandler.cxx
+++ b/Source/CTest/cmCTestUpdateHandler.cxx
@@ -252,6 +252,14 @@ int cmCTestUpdateHandler::ProcessHandler()
std::string goutput;
std::string errors;
+ // make sure
+ const char* lcmess = cmSystemTools::GetEnv("LC_MESSAGES");
+ // if LC_MESSAGES is not set to en_EN, then
+ // set it, so that svn/cvs info will be in english
+ if(! (lcmess && strcmp(lcmess, "en_EN") == 0))
+ {
+ cmSystemTools::PutEnv("LC_MESSAGES=en_EN");
+ }
std::string checkoutErrorMessages;
int retVal = 0;