forked from AuroraMiddleware/gtk
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:
parent
bcbebfa16d
commit
d8bd7bbb22
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user