From 344df0b217105c4bf785c77ab80956330f75feb6 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sun, 20 Jun 2010 23:53:38 +1000 Subject: 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. --- tests/examples/seek/jsseek.c | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3