utf8: report allocation error
Make some of the conversion functions a bit more friendly to allocation failure. Even though the glib policy is to abort() on allocation failure by default, it can be quite helpful to return an allocation error for functions already providing a GError. I needed a safer g_utf16_to_utf8() to solve crash on big clipboard operations with win32, related to rhbz#1017250 (and coming gdk handling bug). https://bugzilla.gnome.org/show_bug.cgi?id=711546
parent
0dbe5c43
Please register or sign in to comment