diff --git a/lib/-ftb-generate-complist b/lib/-ftb-generate-complist index 2fad700..a72a48d 100644 --- a/lib/-ftb-generate-complist +++ b/lib/-ftb-generate-complist @@ -85,12 +85,11 @@ fi # sort and remove sort group or other index zstyle -T ":completion:$_ftb_curcontext" sort if (( $? != 1 )); then - local LC_ALL=C if (( colorful )); then # if enable list_colors, we should skip the first field if [[ ${commands[sort]:A:t} != (|busybox*) ]]; then # this is faster but doesn't work if `find` is from busybox - tcandidates=(${(f)"$(LC_ALL=C command sort -u -t '\0' -k 2 <<< ${(pj:\n:)tcandidates})"}) + tcandidates=(${(f)"$(command sort -u -t '\0' -k 2 <<< ${(pj:\n:)tcandidates})"}) else # slower but portable tcandidates=(${(@o)${(@)tcandidates:/(#b)([^$'\0']#)$'\0'(*)/$match[2]$'\0'$match[1]}})