|
From: Tiziano M. <tiz...@us...> - 2010-08-19 11:48:51
|
Update of /cvsroot/evms/evms2/engine/engine In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv10982/engine/engine Modified Files: internalAPI.c Log Message: reset the locale to ensure tools detect the tools properly Index: internalAPI.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/engine/internalAPI.c,v retrieving revision 1.155 retrieving revision 1.156 diff -u -d -r1.155 -r1.156 --- internalAPI.c 24 Dec 2008 00:15:36 -0000 1.155 +++ internalAPI.c 19 Aug 2010 11:48:43 -0000 1.156 @@ -2549,6 +2549,10 @@ LOG_DEBUG("%s\n", buff); } + /* always reset the locale otherwise some plugins may be unable to + * detect the tools due to translations changing the version string */ + setenv("LC_ALL", "C", 1); + execvp(argv[0], argv); /* If the execvp() works it won't return here. */ |