tests: add codeset-utf8 as a feature

To avoid having to use <precheck> for tests that require UTF-8 support.

Closes #15039
This commit is contained in:
Daniel Stenberg 2024-09-25 14:25:55 +02:00
parent 5fb1b64fdd
commit 0b70b23ef4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
22 changed files with 24 additions and 61 deletions

View file

@ -83,6 +83,7 @@ BEGIN {
use Digest::MD5 qw(md5);
use List::Util 'sum';
use I18N::Langinfo qw(langinfo CODESET);
use pathhelp qw(
exe_ext
@ -825,6 +826,7 @@ sub checksystemfeatures {
$feature{"large-time"} = 1;
$feature{"sha512-256"} = 1;
$feature{"local-http"} = servers::localhttp();
$feature{"codeset-utf8"} = lc(langinfo(CODESET())) eq "utf-8";
# make each protocol an enabled "feature"
for my $p (@protocols) {