Skip to content

Commit 32bab2c

Browse files
committed
MDEV-29543 Windows: Unreadable dlerror() message on localized OS
Force using english for error messages (i.e ASCII) to avoid encoding mixup.
1 parent beffef9 commit 32bab2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/my_global.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ static inline char *dlerror(void)
10941094
{
10951095
static char win_errormsg[2048];
10961096
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM,
1097-
0, GetLastError(), 0, win_errormsg, 2048, NULL);
1097+
0, GetLastError(), MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), win_errormsg, 2048, NULL);
10981098
return win_errormsg;
10991099
}
11001100
#define HAVE_DLOPEN 1

0 commit comments

Comments
 (0)