diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-07 13:11:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-07 13:12:45 -0400 |
commit | 63ceadb485f6618da99e8a3b7822ede8da27989d (patch) | |
tree | a935ce8b0856dd4569072c96d566fbee5b66ecbb /src | |
parent | c1bdc3b10e66de6d79c48c94628956b8578d5f17 (diff) | |
download | tor-63ceadb485f6618da99e8a3b7822ede8da27989d.tar.gz tor-63ceadb485f6618da99e8a3b7822ede8da27989d.zip |
Use LANG_ENGLISH in windows error messages
This change prevents us from generating corrupt messages when we
are confused about codepage settings, and makes Windows errors
consistent with the rest of our logs.
Fixes bug 22520; bugfix on 0.1.2.8-alpha. Patch from "Vort".
Diffstat (limited to 'src')
-rw-r--r-- | src/common/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 3bea626903..4d110aba35 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -3261,7 +3261,7 @@ format_win32_error(DWORD err) FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, - MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), + MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT), (LPVOID)&str, 0, NULL); |