From 55bd4e0052b830256ad1d1134bbe5c7231d1427b Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 12 Dec 2022 16:55:47 +0100 Subject: Add and use it::utf8_decode and it::utf8_encode for easier migration to PHP 8.2 --- test/exec.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/exec.t') diff --git a/test/exec.t b/test/exec.t index 09e16da..04850fc 100755 --- a/test/exec.t +++ b/test/exec.t @@ -70,7 +70,7 @@ foreach (["", "C", "de_CH", "de_CH.utf8"] as $locale) setlocale(LC_ALL, $locale); $arg = "preĆ¼post"; if (it::match('utf8', $locale)) - $arg = utf8_encode($arg); + $arg = it::any2utf8($arg); is(it::exec("echo " . $arg), $arg . "\n", "exec with umlaut (locale '$locale')"); is(it::exec("echo {arg}", ['arg' => $arg]), $arg . "\n", "exec with argument and umlaut (locale '$locale')"); } -- cgit v1.2.3