authorJan Schmidt <>2010-06-20 13:53:38 (GMT)
committer Jan Schmidt <>2010-07-30 12:30:16 (GMT)
commit344df0b217105c4bf785c77ab80956330f75feb6 (patch) (side-by-side diff)
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.
Diffstat (more/less context) (ignore whitespace changes)
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/examples/seek/jsseek.c b/tests/examples/seek/jsseek.c
index 7e407d0..83d54d6 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);