From d306ab66b1ebb48fb8321554ac0e84970c500d4f Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 10 Oct 2008 09:23:49 -0400 Subject: ENH: make sure LC_MESSAGES is en_EN so that we can parse the output of svn and cvs --- Source/CTest/cmCTestUpdateHandler.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- cgit v0.12