autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

added LC_MONETARY, etc. to list of env variables to fix


From: Paul Eggert
Subject: added LC_MONETARY, etc. to list of env variables to fix
Date: Mon, 4 Nov 2002 23:38:47 -0800 (PST)

In response to
<http://mail.gnu.org/pipermail/bug-bison/2002-November/001816.html> I
installed the following patch.  This doesn't really fix any bug, since
the Bison report is relative to an older (and buggy) Autoconf version,
but all the same I think it's better to treat the POSIX and GNU LC_*
variables consistently.

2002-11-04  Paul Eggert  <address@hidden>

        * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
        too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
        LC_NAME, LC_PAPER, LC_TELEPHONE.
        * doc/autoconf.texi (Special Shell Variables): Mention those vars.

Index: lib/m4sugar/m4sh.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/m4sugar/m4sh.m4,v
retrieving revision 1.91
diff -p -u -r1.91 m4sh.m4
--- lib/m4sugar/m4sh.m4 29 Oct 2002 08:06:36 -0000      1.91
+++ lib/m4sugar/m4sh.m4 5 Nov 2002 07:08:29 -0000
@@ -162,7 +162,10 @@ PS2='> '
 PS4='+ '
 
 # NLS nuisances.
-for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES 
LC_TIME
+for as_var in \
+  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+  LC_TELEPHONE LC_TIME
 do
   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
     eval $as_var=C; export $as_var
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.709
diff -p -u -r1.709 autoconf.texi
--- doc/autoconf.texi   3 Nov 2002 17:39:30 -0000       1.709
+++ doc/autoconf.texi   5 Nov 2002 07:08:28 -0000
@@ -9277,6 +9277,7 @@ especially important, as it is used to j
 @itemx LC_COLLATE
 @itemx LC_CTYPE
 @itemx LC_MESSAGES
address@hidden LC_MONETARY
 @itemx LC_NUMERIC
 @itemx LC_TIME
 @evindex LANG
@@ -9284,16 +9285,17 @@ especially important, as it is used to j
 @evindex LC_COLLATE
 @evindex LC_CTYPE
 @evindex LC_MESSAGES
address@hidden LC_MONETARY
 @evindex LC_NUMERIC
 @evindex LC_TIME
 
 Autoconf-generated scripts normally set all these variables to
 @samp{C} because so much configuration code assumes the C locale and
address@hidden requires that @env{LC_ALL} be set to @samp{C} if the C
-locale is desired.  However, some older, nonstandard systems (notably
address@hidden) break if @env{LC_ALL} is set to @samp{C}, so when running on
-these systems Autoconf-generated scripts unset the
-variables instead.
address@hidden requires that locale environment variables be set to
address@hidden if the C locale is desired.  However, some older, nonstandard
+systems (notably @acronym{SCO}) break if locale environment variables
+are set to @samp{C}, so when running on these systems
+Autoconf-generated scripts unset the variables instead.
 
 @item LANGUAGE
 @evindex LANGUAGE
@@ -9301,6 +9303,23 @@ variables instead.
 @env{LANGUAGE} is not specified by @sc{posix}, but it is a @sc{gnu}
 extension that overrides @env{LC_ALL} in some cases, so
 Autoconf-generated scripts set it too.
+
address@hidden LC_ADDRESS
address@hidden LC_IDENTIFICATION
address@hidden LC_MEASUREMENT
address@hidden LC_NAME
address@hidden LC_PAPER
address@hidden LC_TELEPHONE
address@hidden LC_ADDRESS
address@hidden LC_IDENTIFICATION
address@hidden LC_MEASUREMENT
address@hidden LC_NAME
address@hidden LC_PAPER
address@hidden LC_TELEPHONE
+
+These locale environment variables are @acronym{GNU} extensions.  They
+are treated like their @acronym{POSIX} brethren (@env{LC_COLLATE},
+etc.)@: as described above.
 
 @item LINENO
 @evindex LINENO




reply via email to

[Prev in Thread] Current Thread [Next in Thread]