After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 125283 - Invalid postscript when printing to file
Invalid postscript when printing to file
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
1.x
Other Linux
: Normal normal
: 2.0
Assigned To: GIMP Bugs
GIMP Bugs
: 135475 141882 145457 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-10-23 11:57 UTC by Emmanuel Pacaud
Modified: 2004-07-05 14:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test file (235 bytes, image/png)
2003-10-23 11:57 UTC, Emmanuel Pacaud
Details
Result with locale set to fr_FR (1.01 KB, text/plain)
2003-10-23 11:58 UTC, Emmanuel Pacaud
Details
Result with locale set to C (1.01 KB, text/plain)
2003-10-23 11:58 UTC, Emmanuel Pacaud
Details
Diff (587 bytes, text/plain)
2003-10-23 11:59 UTC, Emmanuel Pacaud
Details
With gimp1.2 (1020 bytes, text/plain)
2003-10-23 13:57 UTC, Emmanuel Pacaud
Details

Description Emmanuel Pacaud 2003-10-23 11:57:09 UTC
Printing to file produces invalid postscript files when user locale is one
where decimal separator is not a dot.

Please find attached a test.png test file, the resulting postscript files
whith fr_FR and C locales, and the diff between these last two.

The problem in the ps file obtained with fr_FR locale is decimal separator
is comma instead of dot.
Comment 1 Emmanuel Pacaud 2003-10-23 11:57:37 UTC
Created attachment 20881 [details]
Test file
Comment 2 Emmanuel Pacaud 2003-10-23 11:58:16 UTC
Created attachment 20882 [details]
Result with locale set to fr_FR
Comment 3 Emmanuel Pacaud 2003-10-23 11:58:48 UTC
Created attachment 20883 [details]
Result with locale set to C
Comment 4 Emmanuel Pacaud 2003-10-23 11:59:42 UTC
Created attachment 20884 [details]
Diff
Comment 5 Sven Neumann 2003-10-23 13:19:59 UTC
Thanks for this well-done bug report. Unfortunately it went to the
wrong place. You should report it at the gimp-print bugtracker at
sourceforge.

Though I fear we might have to find a workaround for this brokeness of
libgimpprint in the GIMP plug-in. Can you however please file a bug
report against gimp-print ?!
Comment 6 Sven Neumann 2003-10-23 13:30:48 UTC
Basically the fix is to use a locale-independent variant of fprintf()
such as g_ascii_dtostr() which is provided by GLib. Since we probably
don't want to wait for the gimp-print people to fix this, we should
find out where exactly in the print plug-in we need to temporarily set
LC_NUMERIC to C.
Comment 7 Emmanuel Pacaud 2003-10-23 13:57:24 UTC
Created attachment 20888 [details]
With gimp1.2
Comment 8 Emmanuel Pacaud 2003-10-23 13:58:02 UTC
I'm not sure its a gimp-print problem, since gimp-1.2 and the same
version of gimp-print produce valid postscript files.

Please find before an attached ps file obtained with gimp-1.2 with
locale set to fr_FR.
Comment 9 Sven Neumann 2003-10-23 14:06:54 UTC
You can trust me, I know what I'm talking about.

GIMP-1.2 used to set LC_NUMERIC to C for all plug-ins. GIMP-1.3
doesn't do such stupid things any longer.
Comment 10 Emmanuel Pacaud 2003-10-23 14:14:27 UTC
>You can trust me, I know what I'm talking about.

That was just to be sure. I'm going to fill a bug in the gimp-print
sourceforge bugtracker.
Comment 11 Emmanuel Pacaud 2003-10-23 14:35:10 UTC
Seems to be fixed in both development and stable branch of gimp-print.
I probably have to wait for the next stable release of gimp-print (4.2.6).

Bug number is 729918 in sf bugtracker.
Comment 13 Sven Neumann 2003-10-23 17:10:18 UTC
Eeek, what a terrible fix. At least they could have changed LC_NUMERIC
only...

We still need to decide if we want to point at gimp-print and ask
people to update to the 4.2.6 release or if we want to introduce a
workaround
in the GIMP plug-in.
Comment 14 Sven Neumann 2003-10-23 17:12:18 UTC
If we decide against the workaround, this report should be closed as
duplicate of bug #111746.
Comment 15 Sven Neumann 2003-11-25 18:04:21 UTC
This should be figured out before 2.0.
Comment 16 Sven Neumann 2004-01-11 23:09:14 UTC
Gimp-Print 4.2.6 has just been released. We could ask people that
experience problems to update. I haven't verified yet that this
release fixes the problem but it's supposed to.
Comment 17 Sven Neumann 2004-02-09 23:13:00 UTC
Slowly gimp-print 4.2.6 seems to appear on various distributions.
Would it be worthwhile to depend on it?
Comment 18 Sven Neumann 2004-02-10 12:23:04 UTC
The following change takes care of it. We can add a hard dependency on
4.2.6 later:

2004-02-10  Sven Neumann  <sven@gimp.org>

  * configure.in: warn when gimpprint is older than version 4.2.6.
  It's probably too late to introduce a dependency on that version
  but we would like people to update in order to avoid bug #125283.
Comment 19 Sven Neumann 2004-02-26 13:01:27 UTC
*** Bug 135475 has been marked as a duplicate of this bug. ***
Comment 20 Sven Neumann 2004-05-05 18:54:49 UTC
*** Bug 141882 has been marked as a duplicate of this bug. ***
Comment 21 Sven Neumann 2004-07-05 14:56:23 UTC
*** Bug 145457 has been marked as a duplicate of this bug. ***