ENH: make sure LC_MESSAGES is en_EN so that we can parse the output of svn and cvs

This commit is contained in:
Bill Hoffman 2008-10-10 09:23:49 -04:00
parent 10dec2eac8
commit d306ab66b1
1 changed files with 8 additions and 0 deletions

View File

@ -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;