[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: |
Sun, 15 Sep 2019 09:44:21 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, Sep 15, 2019 at 08:31:39AM -0400, Paul Smith wrote:
> That's because before we try to detect these messages we explicitly set
> the locale in Perl; see test_driver.pl:
>
> my $loc = undef;
> if ($has_POSIX) {
> $loc = POSIX::setlocale(POSIX::LC_MESSAGES);
> POSIX::setlocale(POSIX::LC_MESSAGES, 'C');
> }
> ...get messages...
> $loc and POSIX::setlocale(POSIX::LC_MESSAGES, $loc);
>
> So, the question is why does your Perl still provide language-specific
> messages?
has_POSIX is uninitialized at the time test_driver.pl reads it, because
(atleast in my testing) the code which initializes has_POSIX hasn't run yet.
...
> FWIW, I don't want to change the shell script and call that done
> because not everyone invokes the unit tests via the shell script: they
> may invoke it via "perl run_make_tests.pl ..." directly.
Let me come up with a fix for 'perl run_make_tests.pl'.
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, 2019/09/14
- Re: patch locale settings, Paul Smith, 2019/09/15
- 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, Andreas Schwab, 2019/09/16