[cairo] [PATCH]A cairo-ps-surface.c issue for modern finicky versions of ghostscript

Adrian Johnson ajohnson at redneon.com
Fri Nov 30 00:36:00 PST 2007


Alan W. Irwin wrote:
> I have just installed Debian testing on a new box, and ghostscript (gs-gpl
> version 8.56) errors out with a "/rangecheck in --xyshow" message for
> PostScript results (see attached postscript file) produced with pango-cairo
> and cairo via the PLplot pscairo device driver.

This problem has already been fixed in the development branch of cairo.

> I derived this patch from cairo version 1.4.6 source code, but I have also
> found the problem for PLplot results generated with the Debian testing
> version of cairo (1.4.10), and other PLplot users have noticed the same
> problem with the Ubuntu gutsy version of cairo (also 1.4.10).

The bug is in all the 1.4.x versions that have been released.

> N.B. Older ghostscript versions (e.g., version 7.07.1 from Debian
> oldstable)
> do not give a rangecheck error for the attached PostScript plot.

I tested your example with a number of ghostscript versions. I get the
range check error with 8.56, 8.60, and 8.61. The file is displayed
correctly with versions 8.01, ESP 8.15.3, 8.50, and 8.54.



More information about the cairo mailing list