setlocale for XOpenIM with compose key

This commit is contained in:
def 2016-04-29 21:02:28 +02:00
parent 8e3550f9c6
commit 6c4e6c5c44

View file

@ -7,6 +7,7 @@
#include <stdarg.h>
#include <string.h>
#include <climits>
#include <locale.h> //setlocale
#include <base/math.h>
#include <base/vmath.h>
@ -3395,6 +3396,9 @@ int main(int argc, const char **argv) // ignore_convention
FreeConsole();
#endif
// For XOpenIM in SDL2: https://bugzilla.libsdl.org/show_bug.cgi?id=3102
setlocale(LC_ALL, "");
// run the client
dbg_msg("client", "starting...");
pClient->Run();