diff --git a/debian/changelog b/debian/changelog index 2d55e461..79293358 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,9 @@ byobu (2.75) UNRELEASED; urgency=low * usr/bin/byobu: ensure that .screenrc gets sourced if byobu is run with arguments, LP: #580760 + * ec2_cost, ip_address, network, rcs_cost: fix bug when calling ifconfig + without setting lang to english, LP: #578792 + -- Dustin Kirkland Sat, 15 May 2010 15:32:30 -0400 diff --git a/usr/lib/byobu/ec2_cost b/usr/lib/byobu/ec2_cost index 3115b7bc..bc77aa65 100755 --- a/usr/lib/byobu/ec2_cost +++ b/usr/lib/byobu/ec2_cost @@ -63,7 +63,7 @@ TX_RATE="0.15" # Auto detect network interface IF=`tail -n1 /proc/net/route | awk '{print $1}'` -ifconfig_out=`/sbin/ifconfig "$IF"` +ifconfig_out=`LC_ALL=C /sbin/ifconfig "$IF"` # Calculate bandwidth cost tx_gb=`echo "$ifconfig_out" | grep "TX bytes:" | sed "s/^.*TX bytes://" | awk '{ printf "%f", $1 / 1024 / 1024 / 1024 }'` diff --git a/usr/lib/byobu/ip_address b/usr/lib/byobu/ip_address index 437fd827..95586038 100755 --- a/usr/lib/byobu/ip_address +++ b/usr/lib/byobu/ip_address @@ -21,7 +21,7 @@ PKG="byobu" color 2>/dev/null || color() { true; } if [ "$1" = "--detail" ]; then - /sbin/ifconfig | grep "inet addr" | sed -e 's/^\s*//' -e 's/\s*$//' + LC_ALL=C /sbin/ifconfig | grep "inet addr" | sed -e 's/^\s*//' -e 's/\s*$//' exit 0 fi @@ -36,6 +36,6 @@ else interface=`tail -n1 /proc/net/route | awk '{print $1}'` fi -ipaddr=`/sbin/ifconfig "$interface" | grep "inet addr:" | sed -e "s/^.*inet addr://" -e "s/ .*$//"` +ipaddr=`LC_ALL=C /sbin/ifconfig "$interface" | grep "inet addr:" | sed -e "s/^.*inet addr://" -e "s/ .*$//"` printf "%s$(color bold2)%s$(color -)" "$space" "$ipaddr" diff --git a/usr/lib/byobu/network b/usr/lib/byobu/network index cf378a1a..60f147d8 100755 --- a/usr/lib/byobu/network +++ b/usr/lib/byobu/network @@ -28,7 +28,7 @@ else fi if [ "$1" = "--detail" ]; then - /sbin/ifconfig "$interface" | sed 's/\s*$//' + LC_ALL=C /sbin/ifconfig "$interface" | sed 's/\s*$//' exit 0 fi diff --git a/usr/lib/byobu/rcs_cost b/usr/lib/byobu/rcs_cost index e2ff11f1..219ec5b7 100755 --- a/usr/lib/byobu/rcs_cost +++ b/usr/lib/byobu/rcs_cost @@ -66,7 +66,7 @@ TX_RATE="0.22" # Auto detect network interface IF=`tail -n1 /proc/net/route | awk '{print $1}'` -ifconfig_out=`/sbin/ifconfig "$IF"` +ifconfig_out=`LC_ALL=C /sbin/ifconfig "$IF"` # Calculate bandwidth cost tx_gb=`echo "$ifconfig_out" | grep "TX bytes:" | sed "s/^.*TX bytes://" | awk '{ printf "%f", $1 / 1024 / 1024 / 1024 }'`