make sure clipboard has utf8 text?



I don't know if this has been discussed before but how do Gtk2.0 handles
Clipboard text that is not utf8 format?

For example I tried to paste some text from an old gtk app to the new
textview widget and it yells "Invalid UTF8 string passed to
pango_layout_set_text" 
but still it inserts it to the textbuffert and then it core dumps.

IMHO. the clipboard should check if its utf8 text before insertion and if
not:

A. convert from current locale to utf8
B. if A is not possible, remove the illegal  characters (ugly I know)

Greats

Mikael H.







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]