diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2022-09-15 09:36:44 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2022-09-15 09:39:05 +0200 |
commit | 32bab2ce0518d829b4f97a272fc2431169744c75 (patch) | |
tree | 1e6e0aa3e8ad4519f433005e6e607ef7158a6fb6 /include | |
parent | beffef9f0019d4519447339564d2cf18bebb8401 (diff) | |
download | mariadb-git-32bab2ce0518d829b4f97a272fc2431169744c75.tar.gz |
MDEV-29543 Windows: Unreadable dlerror() message on localized OS
Force using english for error messages (i.e ASCII) to avoid encoding
mixup.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_global.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_global.h b/include/my_global.h index 9eb12ee003b..06e8cf4b1bb 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -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 |