fixed wrong g_convert_with_fallback() call which caused

2007-04-14  Yevgen Muntyan <muntyan@tamu.edu>

	* 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).


svn path=/trunk/; revision=17600
This commit is contained in:
Yevgen Muntyan 2007-04-14 15:58:53 +00:00 committed by Yevgen Muntyan
parent bcbebfa16d
commit d8bd7bbb22
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2007-04-14 Yevgen Muntyan <muntyan@tamu.edu>
* 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 <jimmac@ximian.com>
* gtk/stock-icons/*: update the stock icons to follow the Tango

View File

@ -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);