develooper Front page | perl.perl5.porters | Postings from October 2022

t/run/locale.t: new STDERR warning

Thread Next
From:
Dave Mitchell
Date:
October 12, 2022 11:50
Subject:
t/run/locale.t: new STDERR warning
Message ID:
Y0aqAjQNVzAxS4ej@iabyn.com
A test recently added to  t/run/locale.t is producing noise on STDERR when
building perl on my system.

The test is (in part):

    local $ENV{LC_ALL} = "This is not a legal locale name";

    fresh_perl_like("", qr/Falling back to the $fallback locale/,
                    {}, "check that illegal startup environment falls back");

and it produces this output:

$ ./perl -Ilib  t/run/locale.t > /dev/null
sh: warning: setlocale: LC_ALL: cannot change locale (This is not a legal locale name): No such file or directory
$

Should this be silenced?

-- 
Never work with children, animals, or actors.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About