summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestUpdateHandler.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-10 13:23:49 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-10 13:23:49 (GMT)
commitd306ab66b1ebb48fb8321554ac0e84970c500d4f (patch)
tree81f93585f17bc8c1969f04983ba4ef7ed0ee4c32 /Source/CTest/cmCTestUpdateHandler.cxx
parent10dec2eac8fc0a8d1b3719286e55acba069d4171 (diff)
downloadCMake-d306ab66b1ebb48fb8321554ac0e84970c500d4f.zip
CMake-d306ab66b1ebb48fb8321554ac0e84970c500d4f.tar.gz
CMake-d306ab66b1ebb48fb8321554ac0e84970c500d4f.tar.bz2
ENH: make sure LC_MESSAGES is en_EN so that we can parse the output of svn and cvs
Diffstat (limited to 'Source/CTest/cmCTestUpdateHandler.cxx')
-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 40cc0cc..d24d8f3 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;