diff options
author | ache <ache@FreeBSD.org> | 2016-08-17 09:07:43 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2016-08-17 09:07:43 +0000 |
commit | 42f8b291d01eda00ee6cf0aa1ed0e1dacab80810 (patch) | |
tree | 6745e08091902dda2baf50d163d5c3700895f164 | |
parent | 02a43cd8e225e88b473b2b949679176be6ad4cff (diff) | |
download | FreeBSD-src-42f8b291d01eda00ee6cf0aa1ed0e1dacab80810.zip FreeBSD-src-42f8b291d01eda00ee6cf0aa1ed0e1dacab80810.tar.gz |
MFC r302831
To mimic system glob, we definitely don't need manual upper/lower hack.
The author clearly disagree in the comment, so this patch will be not
submitted upstream.
-rw-r--r-- | contrib/tcsh/glob.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/tcsh/glob.c b/contrib/tcsh/glob.c index 3680403..48d3f90 100644 --- a/contrib/tcsh/glob.c +++ b/contrib/tcsh/glob.c @@ -142,12 +142,14 @@ globcharcoll(__Char c1, __Char c2, int cs) c1 = towlower(c1); c2 = towlower(c2); } else { +#ifndef __FreeBSD__ /* This should not be here, but I'll rather leave it in than engage in a LC_COLLATE flamewar about a shell I don't use... */ if (iswlower(c1) && iswupper(c2)) return (1); if (iswupper(c1) && iswlower(c2)) return (-1); +#endif } s1[0] = c1; s2[0] = c2; |