diff options
author | ache <ache@FreeBSD.org> | 1996-06-09 14:56:08 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-06-09 14:56:08 +0000 |
commit | ec6853868b71426ea726e839f93e1cc8f3c5b761 (patch) | |
tree | b328dc5a7b9ebe2656d1aaacc4c7a2a0c75a8664 /lib/libc/string/strcoll.3 | |
parent | 2fe7739b977266bf3a61a8078e5a5ffb70b3cc6d (diff) | |
download | FreeBSD-src-ec6853868b71426ea726e839f93e1cc8f3c5b761.zip FreeBSD-src-ec6853868b71426ea726e839f93e1cc8f3c5b761.tar.gz |
Use better approximation if collate info not available.
Fix bug: strxfrm+strcmp != strcoll, if collate info not available
Diffstat (limited to 'lib/libc/string/strcoll.3')
-rw-r--r-- | lib/libc/string/strcoll.3 | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/libc/string/strcoll.3 b/lib/libc/string/strcoll.3 index 08f48ad..c81762e 100644 --- a/lib/libc/string/strcoll.3 +++ b/lib/libc/string/strcoll.3 @@ -53,13 +53,10 @@ lexicographically compares the null-terminated strings .Fa s1 and .Fa s2 -according to the current locale collation if any, otherwise call -.Fa strcmp , -and returns an integer greater than, equal to, or less than 0, -according as -.Fa s1 -is greater than, equal to, or less than -.Fa s2 . +according to the current locale collation if any, otherwise some +approximation procedure is used based on available +.Xr ctype 3 +information. .Sh SEE ALSO .Xr setlocale 3 , .Xr strcmp 3 , |