Re: [gmime-devel] issue with g_mime_multipart_encrypted_decrypt / fsync
- From: Dirk-Jan C. Binnema <djcb bulk gmail com>
- To: "Jeffrey Stedfast" <fejj gnome org>
- Cc: gmime-devel-list gnome org
- Subject: Re: [gmime-devel] issue with g_mime_multipart_encrypted_decrypt / fsync
- Date: Tue, 07 Aug 2012 08:14:13 +0300
On 2012-08-05 20:59, Jeffrey Stedfast wrote:
> On 7/22/2012 11:04 AM, Dirk-Jan C. Binnema wrote:
> > I'm trying to use g_mime_multipart_encrypted_decrypt in my app[1], but
> > it keeps returning NULL without 'err' being set. I'm using GMime 2.6.x
> >
> > I've debugged this to the function stream_flush in gmime-stream-pipe.c,
> > where `fsync' returns -1, with errno set to EINVAL. This is called from
> > gmime-gpg-context.c, around line 1194:
> > if (g_mime_stream_flush (passwd) == -1)
> >
> > Maybe fsync on a pipe is not allowed?
> Hmmm, this is possible. I'll look into it. Is this on Linux? Or some
> other system?
Yeah, on Linux, debian/sid, kernel 3.2.0 and glibc 2.13.
Anyway, this is handled in your other reply already.
> > While debugging this, I found something else, which is probably not
> > related, but may be worthwhile to fix:
> >
> > In http://git.gnome.org/browse/gmime/tree/gmime/gmime-gpg-context.c#n388,
> > there's a check for UTF8, using string "UTF-8". However, on my
> > (Debian/sid) system, the locale is "utf8", and thus gmime doesn't
> > recognize it. So, maybe the check should include that as well?
> I've fixed this in git, but it shouldn't have caused any issues (it'd
> just open a charset converter for UTF-8 to UTF-8 and so might have done
> some extra processing, but it should have been extremely cheap).
Ah, that's good to hear -- thanks.
Best wishes,
Dirk.
--
Dirk-Jan C. Binnema Helsinki, Finland
e:djcb djcbsoftware nl w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]