From 3c984ec4c28bc5cd0f51124d91aa0ee989dba36f Mon Sep 17 00:00:00 2001 From: Sveta Smirnova Date: Mon, 8 Dec 2025 20:50:56 +0300 Subject: [PATCH] locale test --- t/pt-mysql-summary/pt-mysql-summary_encryption.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/pt-mysql-summary/pt-mysql-summary_encryption.t b/t/pt-mysql-summary/pt-mysql-summary_encryption.t index 812826f8..25a7c6c2 100644 --- a/t/pt-mysql-summary/pt-mysql-summary_encryption.t +++ b/t/pt-mysql-summary/pt-mysql-summary_encryption.t @@ -132,13 +132,13 @@ for my $i (8..9) { no_diff( sub { local $ENV{_NO_FALSE_NEGATIVES} = 1; - print `$env $trunk/bin/$tool --read-samples $trunk/t/pt-mysql-summary/samples/temp_enc00$i -- --defaults-file=/tmp/12345/my.sandbox.cnf | tail -n+3 | perl -wlnpe 's/Skipping schema analysis.*/Specify --databases or --all-databases to dump and summarize schemas/'` + print `LOCALE=en_US.utf8 LANG=en_US.UTF-8 $env $trunk/bin/$tool --read-samples $trunk/t/pt-mysql-summary/samples/temp_enc00$i -- --defaults-file=/tmp/12345/my.sandbox.cnf | tail -n+3 | perl -wlnpe 's/Skipping schema analysis.*/Specify --databases or --all-databases to dump and summarize schemas/'` }, "t/pt-mysql-summary/samples/expected_output_temp_enc00$i.txt", ), "--read-samples works for t/pt-mysql-summary/temp_enc00$i", ) or diag($test_diff); - diag(`$env $trunk/bin/$tool --read-samples $trunk/t/pt-mysql-summary/samples/temp_enc00$i -- --defaults-file=/tmp/12345/my.sandbox.cnf | tail -n+3 | perl -wlnpe 's/S kipping schema analysis.*/Specify --databases or --all-databases to dump and summarize schemas/'`); + diag(`LOCALE=en_US.utf8 LANG=en_US.UTF-8 $env $trunk/bin/$tool --read-samples $trunk/t/pt-mysql-summary/samples/temp_enc00$i -- --defaults-file=/tmp/12345/my.sandbox.cnf | tail -n+3 | perl -wlnpe 's/S kipping schema analysis.*/Specify --databases or --all-databases to dump and summarize schemas/'`); } # Test that --help works under sh