From 30012ddf4bd78090db45bcb53e55cc1955cf1d39 Mon Sep 17 00:00:00 2001 From: ccesario Date: Wed, 2 Oct 2013 13:45:40 -0300 Subject: Fix the problem "SARG: Cannot set the locale LC_ALL to the environment variable" --- config/sarg/sarg.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/sarg/sarg.inc b/config/sarg/sarg.inc index 97abc138..499c1973 100644 --- a/config/sarg/sarg.inc +++ b/config/sarg/sarg.inc @@ -142,7 +142,7 @@ EOF; } #create a new file to speedup find search file_put_contents("/root/sarg_run_{$id}.sh",$gzip_script,LOCK_EX); - mwexec($cmd. " ".$args); + mwexec("export LC_ALL=C && " .$cmd. " ".$args); #check if there is a script to run after file save if (is_array($config['installedpackages']['sarg'])) switch ($config['installedpackages']['sarg']['config'][0]['proxy_server']){ -- cgit v1.2.3