From 00c88b803fae02a11bc1ff91ccfe6091d475d307 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Thu, 10 Mar 2016 11:50:42 -0700 Subject: LinGui: don't assume log text is iso-8859-1 --- gtk/src/callbacks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 0ae74a0c4..13d2d8531 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -3644,8 +3644,8 @@ ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data) textview = GTK_TEXT_VIEW(GHB_WIDGET (ud->builder, "activity_view")); buffer = gtk_text_view_get_buffer (textview); gtk_text_buffer_get_end_iter(buffer, &iter); - utf8_text = g_convert_with_fallback(text, -1, "UTF-8", "ISO-8859-1", - "?", NULL, &length, NULL); + // Assume logging is in current locale + utf8_text = g_locale_to_utf8(text, -1, NULL, &length, NULL); if (utf8_text != NULL) { gtk_text_buffer_insert(buffer, &iter, utf8_text, -1); -- cgit v1.2.3