[Bash-completion-devel] _ip_addresses should be locale agnostic

Ville Skyttä ville.skytta at iki.fi
Sun Dec 11 20:36:26 UTC 2011


On 12/11/2011 08:45 PM, Raphaël Droz wrote:
> In french address is spelled adresse.
> $ /sbin/ifconfig|sed -ne 's/.*addr:\([^[:space:]]*\).*/\1/p'
> is NULL, while
> $ /sbin/ifconfig|sed -ne 's/.*adr:\([^[:space:]]*\).*/\1/p'
> works
> 
> The attached patch addresses this by setting LANG=C

Applied, but using LC_ALL instead of LANG.  LANG does not override
LC_MESSAGES (or LC_ALL but that shouldn't be already set anyway), so it
should not be used this way.  LC_ALL overrides all other LANG and LC_*
settings.

BTW, could you use "git send-email" when sending patches?  See
CONTRIBUTING in README.



More information about the Bash-completion-devel mailing list