Skip to content

Commit

Permalink
MDEV-29543 Windows: Unreadable dlerror() message on localized OS
Browse files Browse the repository at this point in the history
Force using english for error messages (i.e ASCII) to avoid encoding
mixup.
  • Loading branch information
vaintroub committed Sep 15, 2022
1 parent beffef9 commit 32bab2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/my_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32bab2c

Please sign in to comment.