[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch locale settings
From: |
Dmitry Goncharov |
Subject: |
Re: patch locale settings |
Date: |
Sat, 14 Sep 2019 22:31:41 -0400 |
On Sat, Sep 14, 2019 at 6:27 PM Paul Smith <address@hidden> wrote:
> Your setting of LANG or LC_MESSAGES
> cannot make any difference to the test suite because the test suite
> does not pass those values to the make that it invokes.
Paul, that's the output from the perl program (called base) that is
affected by the env variable. The output from gmake is all right.
$ERR_no_such_file is initialized in test_driver.pl on line 75. This
initialization takes place still in the env inherited by the perl
program, before resetENV runs.
i applied this patch
diff --git a/tests/test_driver.pl b/tests/test_driver.pl
index 4af84da..0260357 100644
--- a/tests/test_driver.pl
+++ b/tests/test_driver.pl
@@ -75,2 +75,3 @@ if (open(my $F, '<', 'file.none')) {
$ERR_no_such_file = "$!";
+ print "lc_messages=$ENV{LC_MESSAGES}, set ERR_no_such_file to
$ERR_no_such_file\n";
}
@@ -172,2 +173,3 @@ sub resetENV
}
+ print "reset env, lc_messages=$ENV{LC_MESSAGES}\n";
}
And here are the first 3 lines of output
$ LC_MESSAGES=ru_RU ./run_make_tests -make_path ../l64/make features/errors
lc_messages=ru_RU, set ERR_no_such_file to ??? ?????? ????? ??? ????????
reset env, lc_messages=
------------------------------------------------------------------------------
The only question is how the output from the perl program (called
base) is not affected by env variable on your host.
regards, Dmitry
- patch locale settings, Dmitry Goncharov, 2019/09/13
- Re: patch locale settings, Paul Smith, 2019/09/14
- Re: patch locale settings, Dmitry Goncharov, 2019/09/14
- Re: patch locale settings, Paul Smith, 2019/09/14
- Re: patch locale settings, Paul Smith, 2019/09/14
- Re: patch locale settings,
Dmitry Goncharov <=
- Re: patch locale settings, Paul Smith, 2019/09/15
- Re: patch locale settings, Dmitry Goncharov, 2019/09/15
- Re: patch locale settings, Paul Smith, 2019/09/15
- Re: patch locale settings, Dmitry Goncharov, 2019/09/15
- Re: patch locale settings, Paul Smith, 2019/09/15
- Re: patch locale settings, Andreas Schwab, 2019/09/16