summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2010-06-20 23:53:38 +1000
committerJan Schmidt <thaytan@noraisin.net>2010-07-30 22:30:16 +1000
commit344df0b217105c4bf785c77ab80956330f75feb6 (patch)
tree2e560a5684074af8e75c4ec157ff9ea3d7ad055b
parent818f39540228b9964baa3d4a9356b6601d27ffd3 (diff)
jsseek: Set joystick io encoding to 'NULL'
Fix problems with newer glib reporting bad encodings on the binary data emerging from the joystick device fd.
-rw-r--r--tests/examples/seek/jsseek.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/examples/seek/jsseek.c b/tests/examples/seek/jsseek.c
index 7e407d01e..83d54d650 100644
--- a/tests/examples/seek/jsseek.c
+++ b/tests/examples/seek/jsseek.c
@@ -3024,6 +3024,7 @@ main (int argc, char **argv)
{
GIOChannel *js_watch = g_io_channel_unix_new (js_fd);
+ g_io_channel_set_encoding (js_watch, NULL, NULL);
g_io_add_watch (js_watch, G_IO_IN, read_joystick, NULL);
}