bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch locale settings


From: Paul Smith
Subject: Re: patch locale settings
Date: Sun, 15 Sep 2019 08:31:39 -0400
User-agent: Evolution 3.32.1-2

On Sat, 2019-09-14 at 22:31 -0400, Dmitry Goncharov wrote:
> 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.

I see.  However, that should not be the case either (and in fact, as I
showed in my previous email, it doesn't fail for me when I explicitly
set LC_MESSAGES to a different language on my system).

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?

Hm.  It might be that we need to run "use locale;" as well.  It doesn't
seem necessary for me but maybe...?

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]