diff --git a/ChangeLog b/ChangeLog index c933d8c41c..667fe1630b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-04-14 Yevgen Muntyan + + * gtk/gtkselection.c (selection_get_text_plain): fixed + wrong g_convert_with_fallback() call which caused + gtk_selection_data_get_text() return invalid UTF-8 for + non-ASCII text in text/plain selection (#382824). + 2007-04-12 Jakub Steiner * gtk/stock-icons/*: update the stock icons to follow the Tango diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index ed40d75558..b76090be20 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -1310,7 +1310,7 @@ selection_get_text_plain (GtkSelectionData *selection_data) { gchar *tmp = str; str = g_convert_with_fallback (tmp, len, - charset, "UTF-8", + "UTF-8", charset, NULL, NULL, &len, &error); g_free (tmp);