Subject: Re: [gmime-devel] Setting User Charset Segfaults
Date: Fri, 27 Feb 2015 18:04:00 -0500
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?