This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran, committed] Add LANG=C to libgfortran/mk-kinds-h.sh


Andreas Schwab wrote:
> Tobias Burnus <burnus@net-b.de> writes:
>   
>> Index: libgfortran/mk-kinds-h.sh
>> +LANG=C
>> +export LANG
>>     
> If you want to ensure C locale you need to set LC_ALL, not LANG.  The
> latter is only used as fallback, any setting of LC_foo will override it.
>   
Good point. I doubt that it will matter in practice, but LC_MESSAGES and
LC_ALL let indeed resurface this problem.

I therefore changed now LANG=C into LC_ALL=C.

Thanks for the comment!

Tobias

Committed as Rev. 129679.

Index: libgfortran/ChangeLog
===================================================================
--- libgfortran/ChangeLog       (Revision 129678)
+++ libgfortran/ChangeLog       (Arbeitskopie)
@@ -1,3 +1,7 @@
+2007-10-27  Tobias Burnus  <burnus@net-b.de>
+
+       * mk-kinds-h.sh: Change "LANG=C" to LC_ALL=C.
+
 2007-10-26  Tobias Burnus  <burnus@net-b.de>

        * mk-kinds-h.sh: Add "LANG=C".
Index: libgfortran/mk-kinds-h.sh
===================================================================
--- libgfortran/mk-kinds-h.sh   (Revision 129678)
+++ libgfortran/mk-kinds-h.sh   (Arbeitskopie)
@@ -1,6 +1,6 @@
 #!/bin/sh
-LANG=C
-export LANG
+LC_ALL=C
+export LC_ALL

 compile="$1"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]