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

FX Coudert fxcoudert@gmail.com
Fri Oct 26 20:35:00 GMT 2007


>     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



More information about the Fortran mailing list