[Bash-completion-devel] Bug#704832: [patch]: locale aware ifconfig breaks completion
Thilo Six
T.Six at gmx.de
Sat Apr 6 14:16:39 UTC 2013
Package: bash-completion
Version: 1:2.0-1
Severity: normal
Dear Maintainer,
_mac_addresses() suffer from not taking care of locale awareness of ifconfig
thus breaking completion for users with non english locale settings.
line 824 needs to be changed:
824 - COMPREPLY+=( $( ifconfig -a 2>/dev/null | sed -ne \
824 + COMPREPLY+=( $( LC_ALL=C ifconfig -a 2>/dev/null | sed -ne \
Sidenote:
As a measure of precaution _available_interfaces() should probably be
fixed in the same way but it does currently not break there.
Further more the sed expression in line 825 does not yield anything here.
compare the original:
$ LC_ALL=C ifconfig -a | sed -ne
"s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)[[:space:]]*$/\1/p"
<nothing>
with
$ LC_ALL=C ifconfig -a | sed -ne "s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)//p"
xx:xx:xx:xx:xx:xx
-- System Information:
Debian Release: 7.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing-proposed-updates'), (500,
'testing')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages bash-completion depends on:
ii bash 4.2+dfsg-1
ii dpkg 1.16.10
bash-completion recommends no packages.
bash-completion suggests no packages.
-- Configuration Files:
/etc/profile.d/bash_completion.sh changed [not included]
-- no debconf information
--
Regards,
Thilo
4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F
More information about the Bash-completion-devel
mailing list