From: Jim Meyering Date: Sun, 26 Aug 2001 05:39:37 +0000 (+0000) Subject: expr now uses LC_COLLATE for string comparison, as per POSIX. X-Git-Tag: TEXTUTILS-2_0_15~314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8cde252806213f2454d57f651c5257bb54cb3e0;p=thirdparty%2Fcoreutils.git expr now uses LC_COLLATE for string comparison, as per POSIX. --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index d4e28d90f8..e32c7bd9f7 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -8295,10 +8295,12 @@ Return its first argument if neither argument is null or 0, otherwise @kindex > @kindex >= @cindex comparison operators +@vindex LC_COLLATE Compare the arguments and return 1 if the relation is true, 0 otherwise. @code{==} is a synonym for @code{=}. @code{expr} first tries to convert both arguments to numbers and do a numeric comparison; if either -conversion fails, it does a lexicographic comparison. +conversion fails, it does a lexicographic comparison using the character +collating sequence specified by the @env{LC_COLLATE} locale. @end table