Commit 32bab2ce authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-29543 Windows: Unreadable dlerror() message on localized OS

Force using english for error messages (i.e ASCII) to avoid encoding
mixup.
parent beffef9f
......@@ -1094,7 +1094,7 @@ static inline char *dlerror(void)
{
static char win_errormsg[2048];
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM,
0, GetLastError(), 0, win_errormsg, 2048, NULL);
0, GetLastError(), MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), win_errormsg, 2048, NULL);
return win_errormsg;
}
#define HAVE_DLOPEN 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