Commit e997bf58 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-34714 perror-win test failure on localized Windows

Let perror produce OS error messages in English
parent 4a67bd51
......@@ -206,7 +206,8 @@ static my_bool print_win_error_msg(DWORD error, my_bool verbose)
char *s;
if (FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM,
NULL, error, 0, (char *)&s, 0,
NULL, error, MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
(char *) &s, 0,
NULL))
{
char* end = s + strlen(s) - 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment