src/solaris/classes/sun/print/UnixPrintJob.java

Print this page

        

@@ -937,11 +937,11 @@
                     /* Write to a temporary file which will be spooled to
                      * the printer then deleted. In the case that the file
                      * is not removed for some reason, request that it is
                      * removed when the VM exits.
                      */
-                    spoolFile = Files.createTempFile("javaprint", ".ps").toFile();
+                    spoolFile = Files.createTempFile("javaprint", "").toFile();
                     spoolFile.deleteOnExit();
                 }
                 result = new FileOutputStream(spoolFile);
                 return result;
             } catch (IOException ex) {