This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran, committed] Add LANG=C to libgfortran/mk-kinds-h.sh
- From: FX Coudert <fxcoudert at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: 2007年10月26日 21:35:34 +0100
- Subject: Re: [Patch, Fortran, committed] Add LANG=C to libgfortran/mk-kinds-h.sh
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; bh=ubknUzS2zGARKffe72B4htCpvBkgSk75cmrYDZOHFoY=; b=iQ7yq8FmPZpYSDjQdbC3Vixk/oJcGlKPLDgva/5LQjdJWtXDUjV62HLUth1BOxcyM0teNhURyvoQd4+gsUGDw/ZvVy2KtWLEy8/VSOYNIgxciqFUeP1xFlLANDF2nVaO/M+xs/QCPqCRxp+e68Tz77xGvY+qLubrWKDUZrDRabE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=e+IyEfOoHjEiWJIqo5LX9HK1tXSOpTPSodsERAc6ucEE+guKJh1Nq3if6O18QS7hwn3K0mDRTRAjU2NPKd1a/ezTBZI+p6DvNpGwi86LajvGwn9xfSy6TWfMDxa770jqJuLszK+xoS3+65xUo9+BO9aYaCMpKDYTZupd2WGXl9c=
- References: <472239EC.3070309@net-b.de>
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