about summary refs log tree commit diff
path: root/Src/Zle/zle_tricky.c
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-01-11 18:24:51 +0000
committerClint Adams <clint@users.sourceforge.net>2005-01-11 18:24:51 +0000
commit8db6e42ecdcde1bd587bf03ac38b2044f944e239 (patch)
treebc12adba0882547a01bb97e804307e14c6147f62 /Src/Zle/zle_tricky.c
parentd7e97230ff23ea923c112c9e023bc4c3c40bf872 (diff)
downloadzsh-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/zle_tricky.c')
-rw-r--r--Src/Zle/zle_tricky.c4
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). *