diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-11-10 10:27:17 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-11-18 17:25:40 +0100 |
commit | 012d3cecb861268937fa05d5dfa2940f80fc235b (patch) | |
tree | 444ab9cf63e87729ca1beaddab9b5704e21a5b82 /mysql-test/suite.pm | |
parent | e36a257323805029e4ad78111e4c40d94f04dc99 (diff) | |
download | mariadb-git-012d3cecb861268937fa05d5dfa2940f80fc235b.tar.gz |
MDEV-26713 Windows - improve utf8 support for command line tools
Diffstat (limited to 'mysql-test/suite.pm')
-rw-r--r-- | mysql-test/suite.pm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/suite.pm b/mysql-test/suite.pm index 4cc6b410fa1..8dc76283fc6 100644 --- a/mysql-test/suite.pm +++ b/mysql-test/suite.pm @@ -87,6 +87,23 @@ sub skip_combinations { $skip{'main/ssl_verify_ip.test'} = 'x509v3 support required' unless $openssl_ver ge "1.0.2"; + sub utf8_command_line_ok() { + if (IS_WINDOWS) { + # Can use UTF8 on command line since Windows 10 1903 (10.0.18362) + my($os_name, $os_major, $os_minor, $os_build, $os_id) = Win32::GetOSVersion(); + if($os_major lt 10){ + return 0; + } elsif($os_major gt 10 or $os_minor gt 0 or $os_build ge 18362) { + return 1; + } + return 0; + } + return 1; + } + + $skip{'main/charset_client_win_utf8mb4.test'} = + $skip{'main/grant_utf8_cli.test'} = 'No utf8 command line support' + unless utf8_command_line_ok(); %skip; } |