Ryo Furue schrieb:
Hello gv maintainers,
http://bugs.ghostscript.com/show_bug.cgi?id=694968
If they are correct, I'd like to ask that gv be fixed.
Hi Ryo,
thanks for the bug report. Dunno wheather they are right or not.
Anyway, the attached GNU gv patch should help for the BoundingBox header.
Greetings
Markus Steinborn
GNU gv maintainer
diff --git a/gv/src/ps.c b/gv/src/ps.c
index 2428bcc..822b65a 100644
--- a/gv/src/ps.c
+++ b/gv/src/ps.c
@@ -357,7 +357,7 @@ static int parse_boundingbox(const char *l, int *boundingbox) {
while (*p == ' ' || *p == '\t')
p++;
fury = strtod(p, &pe);
- if (*pe != '\n' && *pe != '\0' && *pe != ' ' && *pe != '\t') {
+ if (*pe != '\n' && *pe != '\r'&& *pe != '\0' && *pe != ' ' && *pe != '\t') {
return 0;
}