diff options
author | Clint Adams <clint@users.sourceforge.net> | 2005-01-11 18:24:51 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2005-01-11 18:24:51 +0000 |
commit | 8db6e42ecdcde1bd587bf03ac38b2044f944e239 (patch) | |
tree | bc12adba0882547a01bb97e804307e14c6147f62 /Src/Zle | |
parent | d7e97230ff23ea923c112c9e023bc4c3c40bf872 (diff) | |
download | zsh-8db6e42ecdcde1bd587bf03ac38b2044f944e239.tar.gz zsh-8db6e42ecdcde1bd587bf03ac38b2044f944e239.tar.xz zsh-8db6e42ecdcde1bd587bf03ac38b2044f944e239.zip |
* 20657: Src/Zle/zle_tricky.c: sort completions partially based on LC_COLLATE setting.
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_tricky.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 4fbf2b9c5..6d5723c39 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -1907,7 +1907,11 @@ strbpcmp(char **aa, char **bb) } } } +#ifndef HAVE_STRCOLL return (int)(*a - *b); +#else + return strcoll(a,b); +#endif } /* This is used to print the strings (e.g. explanations). * |