summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@gnome.org>2014-10-22 11:22:15 +0200
committerArx Cruz <arxcruz@gnome.org>2014-10-22 11:22:15 +0200
commit9fdac81d78db26fc10bc7c2370f9f67d723f272a (patch)
treed4bc4a37a56dc96fe2aa7bfcd870e5e9b939750b /src
parentAllow --text-info to load resources also from relative file:// URIs (diff)
downloadzenity-9fdac81d78db26fc10bc7c2370f9f67d723f272a.tar.gz
zenity-9fdac81d78db26fc10bc7c2370f9f67d723f272a.tar.bz2
zenity-9fdac81d78db26fc10bc7c2370f9f67d723f272a.zip
Bug #734049 - zenity --text-info chokes on some UTF-8 string
text-info is now seting the text to UTF-8 properly
Diffstat (limited to 'src')
-rw-r--r--src/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index cf4aa63e..9f1041c3 100644
--- a/src/text.c
+++ b/src/text.c
@@ -199,7 +199,7 @@ zenity_text_fill_entries_from_stdin (GtkTextView *text_view)
GIOChannel *channel;
channel = g_io_channel_unix_new (0);
- g_io_channel_set_encoding (channel, NULL, NULL);
+ g_io_channel_set_encoding (channel, "UTF-8", NULL);
g_io_channel_set_flags (channel, G_IO_FLAG_NONBLOCK, NULL);
g_io_add_watch (channel, G_IO_IN | G_IO_HUP, zenity_text_handle_stdin, text_view);
}
bgstack15