Re: Ghostscript/GhostPDL 9.28 Release Candidate 1
"Akira Kakuto" <[email protected]> Wed, 21 Aug 2019 22:57:03 +0900
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <460C354EC7BD45B9B9BDA97B084BCD9F@CJ3001517A> |
Dear Chris,
I tested by changing
doubled directory separators in
control->paths[i]
in
static int
validate(const gs_memory_t *mem,
const char *path,
gs_path_control_t type)
in gpmisc.c
to single ones:
\\ ---> \
// ---> /
ps2pdf iii.eps iii.pdf
and
gswin32 colorcir.ps
became to work fine.
The patch
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=ec0b35fed3de
is not necessary.
My dirty test code is:
/*
const char *a = path;
const char *b = control->paths[i];
*/
char *a = path;
char *b = control->paths[i];
char *p, *q, *r;
p = (char *)malloc(strlen(b) +1);
strcpy(p, b);
q = p;
r = b;
while (*q) {
*r = *q;
if ((*q == '\\' || *q == '/') && (*q == *(q+1)))
q++;
r++;
q++;
}
*r = '\0';
free (p);
Other problem:
gswin32 article9.ps
fails. cidfmap was created OK.
Thanks,
Akira