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 101263 - eps should be created without LC_NUMERIC settings...
eps should be created without LC_NUMERIC settings...
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Data
1.x
Other All
: Normal major
: 2.0
Assigned To: GIMP Bugs
Daniel Egger
Depends on:
Blocks:
 
 
Reported: 2002-12-15 13:00 UTC by Martin Klaffenboeck
Modified: 2003-04-28 14:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (1.59 KB, patch)
2002-12-16 18:15 UTC, Henrik Brix Andersen
none Details | Review

Description Martin Klaffenboeck 2002-12-15 13:00:17 UTC
Hello,

There is no tag for 1.3.10-devel, so I selected unspecified.

I tryed to work with gimp created eps files.  That didn't work, because gs
(ghoscript version 7.05) tells me:
Error: /undefined in 0,000000

And that's really wrong, it should be 0.000000 (note a '.' instead of a ',').

When I now start gimp with LC_NUMERIC=C everything works fine.

My conclusion:  eps should be created without using the LC_NUMERIC or
LC_LOCALE setttings.

It would be fine if you could work on that and send me a patch for 1.3.10. 

Thanks,
Martin
Comment 1 Henrik Brix Andersen 2002-12-15 14:21:12 UTC
I can reproduce this bug using 1.3.10 running on RedHat Linux 8.0.

Example:
$ LANG=da_DK gimp-1.3

... opening an image and exporting to .eps gives invalid postscript file.
Comment 2 Sven Neumann 2002-12-15 16:37:37 UTC
Instead of changing the environment, the plug-in should be changed to
use the locale-independant functions g_ascii_dtostr() and
g_ascii_formatd() from glib-2.0.
Comment 3 Henrik Brix Andersen 2002-12-16 18:15:05 UTC
Created attachment 13039 [details] [review]
Proposed patch
Comment 4 Michael Natterer 2002-12-16 19:25:06 UTC
Fixed in CVS:

2002-12-16  Michael Natterer  <mitch@gimp.org>

  * plug-ins/common/ps.c (save_ps_setup): applied a patch from
  Henrik Brix Andersen <brix@gimp.org> which fixes bug #101263.
Comment 5 Michael Natterer 2003-04-28 14:53:02 UTC
*** Bug 111746 has been marked as a duplicate of this bug. ***