From c0d415f452e65be30a0bd57340179dd69b3e7a7d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 19 Aug 2003 20:14:15 +0000 Subject: pablo say that redefining LC_* is useless if LC_ALL is defined as the later overrides and take priority over the former --- perl-install/standalone/drakconnect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index fe097f114..3b7b3b8af 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -285,7 +285,7 @@ sub get_intf_ip { my ($interface) = @_; my ($ip, $state, $mask); if (-x "/sbin/ifconfig") { - local $_ = `LC_ALL=C LANG=C LANGUAGE=C LC_MESSAGES=C /sbin/ifconfig $interface`; + local $_ = `LC_ALL=C /sbin/ifconfig $interface`; $ip = /inet addr:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/mso ? $1 : N("No Ip"); $mask = /Mask:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/mso ? $1 : N("No Mask"); $state = /inet/ ? "up" : "down"; @@ -329,7 +329,7 @@ sub apply() { $button_apply->set_sensitive(0); } -sub ethisup { `LC_ALL=C LANG=C LANGUAGE=C LC_MESSAGES=C /sbin/ifconfig $_[0]` =~ /inet/ } +sub ethisup { `LC_ALL=C /sbin/ifconfig $_[0]` =~ /inet/ } sub update_intbutt() { $int_state->set($isconnected ? N("Connected") : N("Not connected")); -- cgit v1.2.1