This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: tests for --help (was: [PATCH 0/N] Fix --help output.)
* Ben Elliston wrote on Fri, Mar 06, 2009 at 01:14:45AM CET:
> On Thu, 2009-03-05 at 22:20 +0100, Ralf Wildenhues wrote:
>
> > Do I need to take into account localization issues here? If yes, how
> > would I go about it?
>
> What if you set the relevant locale environment variables in the expect
> script to force the translation you want? (Which leaves other locales
> untested, admittedly).
Well, it doesn't matter much here to test only the C locale.
The thing I don't understand though is: the only locale settings
I find in the current testsuite are in
g++.exp gcc-dg.exp gfortran.exp objc.exp
and I cannot see how they can possibly affect the locale on a remote
target; dejagnu itself doesn't seem to have such settings in its .exp
file either.
Other than that, nothing breaks if I add this early in the script:
# We set LC_ALL and LANG to C so that we get the same error messages as
# expected.
setenv LC_ALL C
setenv LANG C
but OTOH I cannot get my uninstalled compiler to output localized
messages anyway, so what would I need to do to have an effective
way to ensure the above works?
Thanks,
Ralf