]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi (Special Shell Variables): More emphasis on
authorAkim Demaille <akim@epita.fr>
Wed, 2 Aug 2000 07:58:34 +0000 (07:58 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 2 Aug 2000 07:58:34 +0000 (07:58 +0000)
the dangers of character ranges.
From Paul Eggert.

ChangeLog
doc/autoconf.texi

index 27fb42b2706f1d442777a2901cdac812f5132efe..7a31c4ba53fdef9d651d66d5be8f1ff8fdf91691 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-08-02  Akim Demaille  <akim@epita.fr>
+
+       * doc/autoconf.texi (Special Shell Variables): More emphasis on
+       the dangers of character ranges.
+       From Paul Eggert.
+
 2000-08-01  Akim Demaille  <akim@epita.fr>
 
        * autoheader.sh (_ac_warnings): Be robust to LC_COLLATE.
index 3e4e7801a0e39434a6c19e986da30bf2bd6cc45a..285f243402e2403a7b94dcb1b71c52e6ba581ebd 100644 (file)
@@ -4946,12 +4946,16 @@ fall back, see @ref{Limitations of Builtins}.
 @evindex LC_MESSAGES
 
 These must not be set unconditionally because not all systems understand
-e.g. @samp{LANG=C} (notably SCO).  Fixing @code{LC_MESSAGES} prevents
+e.g. @samp{LANG=C} (notably SCO).  Fixing @env{LC_MESSAGES} prevents
 Solaris @command{sh} from translating var values in @code{set}!  Non-C
-@code{LC_CTYPE} values break the ctype check.  Fixing @code{LC_COLLATE}
-prevents accented characters from being match by @samp{[a-z]} etc.  You
-are nevertheless encouraged to list explicitly the characters instead of
-relying on ranges.  @code{LANGUAGE} is a @sc{gnu} extension.
+@env{LC_CTYPE} values break the ctype check.  Fixing @env{LC_COLLATE}
+makes scripts more portable in some cases.  For example, it causes the
+regular expression @samp{[a-z]} to match only lower-case letters on
+@sc{ascii} platforms.  However, @samp{[a-z]} does not work in general
+even when @env{LC_COLLATE} is fixed; for example, it does not work for
+@sc{ebcdic} platforms.  For maximum portability, you should use regular
+expressions like @samp{[abcdefghijklmnopqrstuvwxyz]} that list
+characters explicitly instead of relying on ranges.
 
 @emph{If} one of these variables is set, you should try to unset it,
 using @samp{C} as a fall back value. see @ref{Limitations of Builtins},