🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.ghostscript.bug
Article #380

2 vs. 2.0

#380
From: L. Peter Deutsch
Date: Tue, 15 Sep 1992 06:12
30 lines
1852 bytes
Re <9209150244.AA12148@cookie-crisp> <BuKGB6.3ty@news.cso.uiuc.edu>:

> Here is some Ghostscript code which behaves differently in GS 2.5.1 and
> on an Apple LaserWriter.  This gave me problems when I tried to `cvs' it
> into a "1 string".  Is this a bug in PS 38.0 or in GS 2.5.1 or neither?
> -------------------------------------------------------------------------------
> PostScript(tm) Version 38.0
> Copyright (c) 1985 Adobe Systems Incorporated.
> PS>4 2 div =
> 2.0
> -------------------------------------------------------------------------------
> $ gs -v
> Ghostscript 2.5.1 (9/11/92)
> $ print "4 2 div =" | gs -dNODISPLAY -
> Initializing... done.
> 2
> -------------------------------------------------------------------------------

It's an under-specification in the definition of the PostScript
language, which doesn't require integral reals to print with a
decimal point.

>From a compatibility viewpoint, it's a bug in Ghostscript.  I'll make
reals always print with a decimal point (or an exponent) when I
re-release 2.5.1.  I can't, however, guarantee that Ghostscript will
print all reals the same way that an Adobe interpreter does.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; voice 415-322-0103 ; fax 322-1734
    "Implementation is the sincerest form of flattery."    new--->^^^^^^^^^^^^
Technical Details
Message-ID: <9209142312.0.UUL1.3#5127@aladdin.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!aladdin.COM!ghost

Show Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!aladdin.COM!ghost
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: 2 vs. 2.0
Message-ID: <9209142312.0.UUL1.3#5127@aladdin.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 15 Sep 1992 06:12:39 GMT
Approved: bug-ghostscript@prep.ai.mit.edu
Lines: 34