Created attachment 6767 [details] ghostscript-ps2epsi-cr.patch ps2epsi writes a carriage return instead of a newline after the BoundingBox and HiResBoundingBox comments. Patch attached.
Original bug report: https://bugzilla.redhat.com/show_bug.cgi?id=635786
While unix folks may think this is wrong, it is not. Macintosh pioneered the use of PS with the Apple Laserwriter and used \r as the line end. Since different systems use different line endings, Adobe wisely allows ANY line ending: \r \r\n \n as equivalent. Adobe's DSC comment section says: --------------------------------------------------------------------------- Line Endings. Lines must be terminated with one of the following combinations of characters: CR, LF, or CR LF. CR is the carriage-return character and LF is the line-feed character (decimal ASCII 13 and 10, respectively). --------------------------------------------------------------------------- Thus this bug report is bogus.
New line characters are used elsewhere in ps2epsi.ps, so isn't it just more consistent to use the same line ending throughout? Otherwise it just seems like being deliberately unexpected just because the standard says it's allowed.