Skip to content
  • Marc-André Lureau's avatar
    utf8: report allocation error · d6a19d2e
    Marc-André Lureau authored
    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
    d6a19d2e