Re: [gmime-devel] Setting User Charset Segfaults



You need to null-terminate your list of charset strings so that the code knows when the list ends (there's no way for it to get a count of elements in the list otherwise).

Jeff

On 2/27/2015 2:07 PM, chrissmith511 . wrote:
I'm trying to override the default charset options with g_mime_utils_header_encode_phrase by:

const char **sets[2] = { "UTF-8", "ISO5598-1" };
g_mime_set_user_charsets(sets);

Things compile fine, but as soon as g_mime_set_user_charsets() is called at runtime the program seg-faults. From what I've read, this is the correct way to call the function, but it seems this isn't so.

Relates to GMime version 2.6.19

Could anyone confirm whether this is a bug or not?

Chris Smith


_______________________________________________
gmime-devel-list mailing list
gmime-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gmime-devel-list



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