15MB files on photo
David Shaw
dshaw at jabberwocky.com
Fri May 3 17:40:02 CEST 2002
> >On Wed, May 01, 2002 at 05:27:42PM -0700, Hideki Saito wrote:
> >> I found some problem with photo capability of 1.0.7 on Win32
> >> compilation.
> >>
> >> If you try to display graphics, it is actually a bogus JPG file.
> >>
> >> I have tried with the option i_view32 %i as a photo-viewer argument,
> >> and it returns "unknown header" error.
> >>
> >> Then I tried i_view32 %I to see what actual "TEMP.JPG" is like, and it
> >> turns out be a 12MB - 15MB garbage file.
> >
> >Hmm. Are you using a Mingw32 or Cygwin build?
On Wed, May 01, 2002 at 07:06:11PM -0700, Hideki Saito wrote:
> Mingw32 build it is...
The problem is forward slashes in the photo path. Before you compile,
you need to change g10defs.h:
Change these:
#define DIRSEP_C '/'
#define DIRSEP_S "/"
To these:
#define DIRSEP_C '\\'
#define DIRSEP_S "\\"
The Win32 internals do allow either / or \, but the photo viewer uses
system(), and that calls command, and command does not allow forward
slashes.
As for the large garbage file in i_view32, I was able to duplicate the
problem here so I see it as well, but I don't know where the garbage
came from. I suspect that i_view32 gets upset if it gets forward
slashes in a pathname.
David
--
David Shaw | dshaw at jabberwocky.com | WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
"There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence." - Jeremy S. Anderson
More information about the Gnupg-devel
mailing list