[Cmake-commits] [cmake-commits] hoffman committed cmCTestUpdateHandler.cxx 1.43 1.44
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Oct 10 09:23:52 EDT 2008
Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv32245
Modified Files:
cmCTestUpdateHandler.cxx
Log Message:
ENH: make sure LC_MESSAGES is en_EN so that we can parse the output of svn and cvs
Index: cmCTestUpdateHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestUpdateHandler.cxx,v
retrieving revision 1.43
retrieving revision 1.44
diff -C 2 -d -r1.43 -r1.44
*** cmCTestUpdateHandler.cxx 1 Oct 2008 16:46:45 -0000 1.43
--- cmCTestUpdateHandler.cxx 10 Oct 2008 13:23:49 -0000 1.44
***************
*** 253,256 ****
--- 253,264 ----
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;
More information about the Cmake-commits
mailing list