On 10/12/22 05:50, Dave Mitchell wrote: > 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? > Yes, but I don't know a good way to do so. It is coming from the shell; not all shells raise it. For some shells, LC_ALL and friends are significant, and changing them to a locale not present on the system causes the shell to complain. But that is the point of the test, to make sure that perl properly handlesThread Previous