]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
LANGUAGE should be neutralized too.
authorAkim Demaille <akim@epita.fr>
Mon, 10 Jul 2000 10:25:39 +0000 (10:25 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 10 Jul 2000 10:25:39 +0000 (10:25 +0000)
* acgeneral.m4 (_AC_INIT_PREPARE_ENVIRONMENT): Do it.
* doc/autoconf.texi (Special Shell Variables): Mention it.

ChangeLog
acgeneral.m4
doc/autoconf.texi
lib/autoconf/general.m4

index 8969e18daaad1d6b453643c7c0e0ceaf94037239..c8f7d3434a13f585bfcfe3cd65b58f222ca56db0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-07-10  Akim Demaille  <akim@epita.fr>
+
+       LANGUAGE should be neutralized too.
+
+       * acgeneral.m4 (_AC_INIT_PREPARE_ENVIRONMENT): Do it.
+       * doc/autoconf.texi (Special Shell Variables): Mention it.
+
 2000-07-10  Akim Demaille  <akim@epita.fr>
 
        Set autoconf's default warnings to `syntax'.
index d88d34f18cfd83328c1756cd98ff9a5a1118eefe..019d20a7dfc4cbedb1ed532c1219f1aee39a9914 100644 (file)
@@ -1802,6 +1802,7 @@ fi
 AC_SHELL_UNSET([LANG],        [C])
 AC_SHELL_UNSET([LC_ALL],      [C])
 AC_SHELL_UNSET([LC_CTYPE],    [C])
+AC_SHELL_UNSET([LANGUAGE],    [C])
 AC_SHELL_UNSET([LC_MESSAGES], [C])
 
 # IFS
index bb2afd15ba933598605fa4f050614cfbe984e71e..5dd707fd4d9b3a80e4901624be32316b8acdb0ca 100644 (file)
@@ -4722,24 +4722,24 @@ fall back, see @ref{Limitations of Builtins}.
 
 @item LANG
 @itemx LC_ALL
-@itemx LC_MESSAGES
 @itemx LC_CTYPE
+@itemx LANGUAGE
+@itemx LC_MESSAGES
 @evindex LANG
 @evindex LC_ALL
-@evindex LC_MESSAGES
 @evindex LC_CTYPE
+@evindex LANGUAGE
+@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
 Solaris @command{sh} from translating var values in @code{set}!  Non-C
-@code{LC_CTYPE} values break the ctype check.  Therefore, run:
+@code{LC_CTYPE} values break the ctype check.  @code{LANGUAGE} is a
+@sc{gnu} extension.
 
-@example
-test "$@{LANG+set@}" = set && LANG=C && export LANG
-test "$@{LC_ALL+set@}" = set && LC_ALL=C && export LC_ALL
-test "$@{LC_CTYPE+set@}" = set && LC_CTYPE=C && export LC_CTYPE
-test "$@{LC_MESSAGES+set@}" = set && LC_MESSAGES=C && export LC_MESSAGES
-@end example
+@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},
+builtin @command{unset}, for more details.
 
 @item NULLCMD
 @evindex NULLCMD
index d88d34f18cfd83328c1756cd98ff9a5a1118eefe..019d20a7dfc4cbedb1ed532c1219f1aee39a9914 100644 (file)
@@ -1802,6 +1802,7 @@ fi
 AC_SHELL_UNSET([LANG],        [C])
 AC_SHELL_UNSET([LC_ALL],      [C])
 AC_SHELL_UNSET([LC_CTYPE],    [C])
+AC_SHELL_UNSET([LANGUAGE],    [C])
 AC_SHELL_UNSET([LC_MESSAGES], [C])
 
 # IFS