From mwtoews at sfu.ca  Sun Feb 18 02:26:15 2007
From: mwtoews at sfu.ca (mwtoews at sfu.ca)
Date: Sun, 18 Feb 2007 02:26:15 +0100 (CET)
Subject: [Rd] Windows EPS format error (PR#9518)
Message-ID: <20070218012615.6B7225A945@slim.kubism.ku.dk>

This bug can be reproduced using R version 2.4.1 for Windows, where 
WinAnsiEncoding is used.
To reproduce this bug, start a Windows R session, and run:

postscript("first.eps", width=6, height=6, horizontal=FALSE, 
onefile=FALSE, paper="special")
plot(1:5)
dev.off()
q("no")

Now, start a new R session, and run:

pdf("second.pdf")
plot(1:5)
dev.off()
postscript("third.eps", width=6, height=6, horizontal=FALSE, 
onefile=FALSE, paper="special")
plot(1:5)
dev.off()
q("no")

The differences between "first.eps" and "third.eps" are shown to be:

$ diff first.eps third.eps
40d39
< /WinAnsiEncoding [
73d71
< ]

The file "third.eps" is an invalid format, and Vhostview reports:
Error: /undefined in WinAnsiEncoding
Operand stack:
   .notdef   .notdef   .notdef
... etc ...

I've also tested for this peculiar behavior with R 2.4.1 for Debian, 
however it checked clean.
+mt



[Rd] Windows EPS format error (PR#9518)
mwtoews at sfu.ca