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

Tobias Burnus burnus@net-b.de
Sat Oct 27 14:08:00 GMT 2007


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"



More information about the Fortran mailing list