Similar to previous patch.

parsing the output of chkconfig --list on a system with LANG=fr_FR.UTF-8 
searching for "on" will not trigger when "marche" is seen instead.

This patch fix this issue.

As said before, this may not be the best way to fix this LANG issue. maybe 
setting LC_ALL=C globaly to oscar could be a solution.
Though, it may become a problem later if we decide to locallize OSCAR.

Regards,

Olivier.
-- 
        Olivier LAHAYE
        CEA Saclay
        DRT-LIST-DETECS-SSTM
Index: SystemServices.pm
===================================================================
--- SystemServices.pm	(révision 9141)
+++ SystemServices.pm	(copie de travail)
@@ -78,7 +78,7 @@
     my $service = shift;
 
     $service = File::Basename::basename ($service);
-    my $output = `/sbin/chkconfig --list $service`;
+    my $output = `LC_ALL=C /sbin/chkconfig --list $service`;
     my @status = parse_chkconfig_output ($output);
 
     # We only care about the runlevels 2, 3, 4, and 5
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to