From d6797e53b429dbadd9a9f145731a5f90145bce83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C3=85strand?= Date: Tue, 28 Oct 2014 03:37:20 +0100 Subject: [PATCH] Fix compile failure when X_HAVE_UTF8_STRING is not defined --- obt/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obt/keyboard.c b/obt/keyboard.c index 4e84f481..60caf0e3 100644 --- a/obt/keyboard.c +++ b/obt/keyboard.c @@ -329,7 +329,7 @@ gunichar obt_keyboard_keypress_to_unichar(ObtIC *ic, XEvent *ev) #ifndef X_HAVE_UTF8_STRING /* convert to utf8 */ gchar *buf2 = buf; - buf = g_locale_to_utf8(buf2, r, NULL, NULL, NULL); + buf = g_locale_to_utf8(buf2, len, NULL, NULL, NULL); g_free(buf2); #endif