From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 5 Mar 2007 20:07:35 -0000 Subject: [Cluster-devel] conga/ricci/common executils.cpp Message-ID: <20070305200735.23251.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Branch: RHEL4 Changes by: rmccabe at sourceware.org 2007-03-05 20:07:33 Modified files: ricci/common : executils.cpp Log message: Force LOCALE to C for children when executing commands Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/common/executils.cpp.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.7&r2=1.7.4.1 --- conga/ricci/common/executils.cpp 2006/08/12 00:38:36 1.7 +++ conga/ricci/common/executils.cpp 2007/03/05 20:07:33 1.7.4.1 @@ -1,5 +1,5 @@ /* - Copyright Red Hat, Inc. 2005 + Copyright Red Hat, Inc. 2005-2007 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -26,6 +26,7 @@ #include "Time.h" #include +#include #include #include #include @@ -110,7 +111,10 @@ sigset_t set; sigfillset(&set); sigprocmask(SIG_UNBLOCK, &set, NULL); - + + setenv("LANG", "C", 1); + setenv("LC_ALL", "C", 1); + /* exec */ try {