summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-03-10 11:50:42 -0700
committerJohn Stebbins <[email protected]>2016-03-10 11:50:42 -0700
commit00c88b803fae02a11bc1ff91ccfe6091d475d307 (patch)
tree9e48bfbf2b8db76164022fadcac1217fc5857aca
parent9915346bc55eaae2b9508259f51fa458a7ce679c (diff)
LinGui: don't assume log text is iso-8859-1
-rw-r--r--gtk/src/callbacks.c4
1 files 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);