summaryrefslogtreecommitdiff
path: root/logview/logview-window.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-08-21 19:59:32 +0300
committerinfirit <[email protected]>2015-08-31 21:57:23 +0200
commit6476bc323fb1d16b039cec0aa878251e1166619c (patch)
tree2056c668c4c684b10f59b00e92c2b6e4547f10e4 /logview/logview-window.c
parent23d1345a9f4935c7550bd8ea97bd3527bf294e14 (diff)
downloadmate-utils-6476bc323fb1d16b039cec0aa878251e1166619c.tar.bz2
mate-utils-6476bc323fb1d16b039cec0aa878251e1166619c.tar.xz
logview: actually insert the converted data into the buffer
from https://git.gnome.org/browse/gnome-system-log/commit/?id=575ff413620dd17adb4c52a8ae79f744a694c7a1
Diffstat (limited to 'logview/logview-window.c')
-rw-r--r--logview/logview-window.c3
1 files changed, 2 insertions, 1 deletions
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]));
}