diff --git a/completions/slapt-get b/completions/slapt-get index 93d110bc..b94c1f0f 100644 --- a/completions/slapt-get +++ b/completions/slapt-get @@ -55,13 +55,13 @@ _slapt_get() # slapt-get will fail to search for "^name-version" # it can search for names only local name=${cur%%-*} - COMPREPLY=( $( slapt-get -c $config --search "^$name" 2>/dev/null |\ - sed -ne "/^$cur/{s/ .*$//;p}" ) ) + COMPREPLY=( $( LC_ALL=C "$1" -c "$config" --search "^$name" 2> \ + /dev/null | LC_ALL=C sed -ne "/^$cur/{s/ .*$//;p}" ) ) return ;; avl) # --install|-i| - COMPREPLY=( $( slapt-get -c $config --available 2>/dev/null | \ - sed -ne "/^$cur/{s/ .*$//;p}" ) ) + COMPREPLY=( $( LC_ALL=C "$1" -c "$config" --available 2> \ + /dev/null | LC_ALL=C sed -ne "/^$cur/{s/ .*$//;p}" ) ) return ;; ins) # --remove|--filelist diff --git a/completions/slapt-src b/completions/slapt-src index 9b6f5015..a3a646a9 100644 --- a/completions/slapt-src +++ b/completions/slapt-src @@ -49,11 +49,12 @@ _slapt_src() if [[ "$cur" == *:* ]]; then local name=${cur%:*} local version=${cur##*:} - COMPREPLY=( $( slapt-src --config "$config" --search "^$name" 2> \ - /dev/null | sed -ne "/^$cur/{s/^$name:\([^ ]*\) .*$/\1/;p}" ) ) + COMPREPLY=( $( LC_ALL=C "$1" --config "$config" --search "^$name" 2> \ + /dev/null | LC_ALL=C sed -ne \ + "/^$cur/{s/^$name:\([^ ]*\) .*$/\1/;p}" ) ) else - COMPREPLY=( $( slapt-src --config "$config" --search "^$cur" 2> \ - /dev/null | sed -ne "/^$cur/{s/ .*$//;p}" ) ) + COMPREPLY=( $( LC_ALL=C "$1" --config "$config" --search "^$cur" 2> \ + /dev/null | LC_ALL=C sed -ne "/^$cur/{s/ .*$//;p}" ) ) fi } && complete -F _slapt_src slapt-src