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


    huge=`$compile -c -fdump-parse-tree tmq$$.f90 | grep TRANSFER \
                | sed 's/ *TRANSFER *// ; s/_.*//'`

only works if TRANSFER is not translated in the dump.

If TRANSFER is translated, it's a bug a) in the gfortran POT file, probably by an overzealous, and b) in the front-end, which shouldn't mark this string for localization. Can you look into it?


Index: libgfortran/mk-kinds-h.sh
===================================================================
--- libgfortran/mk-kinds-h.sh   (Revision 129657)
+++ libgfortran/mk-kinds-h.sh   (Arbeitskopie)
@@ -1,4 +1,6 @@
 #!/bin/sh
+LANG=C
+export LANG

compile="$1"

Is that completely portable? I'm never sure how environment variables work with different shells.


FX


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