summaryrefslogtreecommitdiff
path: root/pugl_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-14 23:01:34 +0800
committerDavid Robillard <d@drobilla.net>2016-09-14 23:01:34 +0800
commitd394a51b662a3cbbb575a94836a6d9737ce0c26a (patch)
treec32e18b599783dff76a08074a90bfeb8f668859f /pugl_test.c
parentc86a7f10621d8f5f6f2a89f801ca25560ecc9fff (diff)
Fix compose key
Turns out the app needs to call setlocale(LC_ALL, "") for this to work. I am not sure if it is possible to make things work correctly purely in Pugl (since plugin UIs can't call setlocale).
Diffstat (limited to 'pugl_test.c')
-rw-r--r--pugl_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pugl_test.c b/pugl_test.c
index 942b725..698299b 100644
--- a/pugl_test.c
+++ b/pugl_test.c
@@ -18,6 +18,7 @@
@file pugl_test.c A simple Pugl test that creates a top-level window.
*/
+#include <locale.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
@@ -217,6 +218,8 @@ main(int argc, char** argv)
}
}
+ setlocale(LC_CTYPE, "");
+
PuglView* view = puglInit(NULL, NULL);
puglInitWindowClass(view, "PuglTest");
puglInitWindowSize(view, 512, 512);