First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 123870
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Printing Team <printing@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Marek Szuba <Marek.Szuba@if.pw.edu.pl>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
cdll.c-theeepartverno.diff cdll.c-theeepartverno.diff patch Marek Szuba 2006-02-23 15:51 0000 514 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 123870 depends on: Show dependency tree
Show dependency graph
Bug 123870 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-02-23 15:51 0000
Hello everyone,

The API of all three flavours of Ghostscript presents the version number as an
integer concatenating parts of the human-readable form of the version - 7.07 is
707, 8.00 is 800 etc. Unfortunately the same is done for releases tagged with
three-part version numbers, for instance in case of espgs-8.15.1 the version
number returned by the API is 81501, not (as one would expect for consistency)
815.01, even though the latter form is displayed by the same app when it is
run. Consequently, programs which perform version check on Ghostscript by
comparing the int the latter returns to some other values and use this method
to check if the version is not newer thaan... will refuse to work. One of such
programs is GSview.

Enclosed you will find a patch which works around the issue by repeatedly
dividing the version number by ten if it's larger than 999. While this is
something of a hack, it works fine and, considering the program's current max
Ghostscript version number is 9.something, is not likely to break things in the
near future.

------- Comment #1 From Marek Szuba 2006-02-23 15:51:54 0000 -------
Created an attachment (id=80567) [edit]
cdll.c-theeepartverno.diff

------- Comment #2 From Stefan Schweizer 2006-04-02 15:11:42 0000 -------
thanks, fixed

------- Comment #3 From Stefan Tittel 2006-08-26 19:15:14 0000 -------
This bug still happens with gsview-4.6 on AMD64, where 4.6 is the current
stable version.

First Last Prev Next    No search results available      Search page      Enter new bug