runtests.pl: use C.UTF-8

This commit is contained in:
Viktor Szakats 2025-07-22 23:03:16 +02:00
parent 7f13b0c9a1
commit 1abbdb2b06
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -494,7 +494,7 @@ sub is_utf8_supported {
if($was_defined) {
$old_LC_ALL = $ENV{'LC_ALL'};
}
setlocale(LC_ALL, $ENV{'LC_ALL'} = 'en_US.UTF-8');
setlocale(LC_ALL, $ENV{'LC_ALL'} = 'C.UTF-8');
$result = lc(langinfo(CODESET())) eq "utf-8";
if($was_defined) {
$ENV{'LC_ALL'} = $old_LC_ALL;