Hi Tristan, On Tuesday Jun 24 2014, Tristan Williams wrote:
> Solved. Already :) > > The problem arises for me when using plain output (default) and the > charset is not utf8. In this case > > conv = g_locale_from_utf8 (str, -1, (gsize*)&bytes, NULL, &err); > > is used to attempt conversion. When passed the subject from my suspect > email a > segmentation fault occurs. > > The simplest workaound for me was to escape everything that is not utf8 > using > > conv = g_strescape (str, NULL); > > rather than attempt conversion. After doing this, my suspect email no > longer causes a segmentation fault. > > Having worked this out, I realised(*) that this is not a new issue > > http://code.google.com/p/mu0/issues/detail?id=74 > > and that a much more elegant solution and explanation already exist in > github > > https://github.com/djcb/mu/blob/master/lib/mu-util.c (from line 450) > > Would it be worth updating the tar.gz release to include this solution? Certainly, I have been unsuccesfully trying to do a new release for months now... I think most people are using mu from git these days. Cheers, Dirk. -- Dirk-Jan C. Binnema Helsinki, Finland e:[email protected] w:www.djcbsoftware.nl pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C -- You received this message because you are subscribed to the Google Groups "mu-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
