From 6476bc323fb1d16b039cec0aa878251e1166619c Mon Sep 17 00:00:00 2001 From: Monsta Date: Fri, 21 Aug 2015 19:59:32 +0300 Subject: logview: actually insert the converted data into the buffer from https://git.gnome.org/browse/gnome-system-log/commit/?id=575ff413620dd17adb4c52a8ae79f744a694c7a1 --- logview/logview-window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'logview') diff --git a/logview/logview-window.c b/logview/logview-window.c index 3634e1d2..d0728f92 100644 --- a/logview/logview-window.c +++ b/logview/logview-window.c @@ -1013,7 +1013,8 @@ read_new_lines_cb (LogviewLog *log, if (!g_utf8_validate (lines[i], len, NULL)) { converted = g_locale_to_utf8 (lines[i], (gssize) len, NULL, &len, NULL); - gtk_text_buffer_insert (buffer, &iter, lines[i], len); + gtk_text_buffer_insert (buffer, &iter, converted, len); + g_free (converted); } else { gtk_text_buffer_insert (buffer, &iter, lines[i], strlen (lines[i])); } -- cgit v1.2.1