[BUG] PostScript saving (Locale issue: 961568)
Ok, I think this issue has been discussed before in this list/newsgroup, but I couldn't find any report in the bugtracker.
The locale issue with file saving was fixed for the SVG-format, but remains for PostScript.
If the locales (LC_...) are set to a language which use comma-sign (',') as decimal-separator, the PostScript file will use them as such. This is wrong -- it shouldn't be localized, but fixed set to dot ('.').
Therefor, setting LC_ALL=C solves the issue temporary.
I've added this to the bugtracker, item 961568.
Tried version: snapshot 20040526
/ Gustav
excuse my poor english..
Thanks for bug report, and for putting it in the SF tracker.
Bryce
On Thu, 27 May 2004, Gustav Broberg wrote:
Ok, I think this issue has been discussed before in this list/newsgroup, but I couldn't find any report in the bugtracker.
The locale issue with file saving was fixed for the SVG-format, but remains for PostScript.
If the locales (LC_...) are set to a language which use comma-sign (',') as decimal-separator, the PostScript file will use them as such. This is wrong -- it shouldn't be localized, but fixed set to dot ('.').
Therefor, setting LC_ALL=C solves the issue temporary.
I've added this to the bugtracker, item 961568.
Tried version: snapshot 20040526
/ Gustav
excuse my poor english..
This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Gustav,
can you provide a file that cause errors?
thx,
Adib.
Gustav Broberg wrote:
Ok, I think this issue has been discussed before in this list/newsgroup, but I couldn't find any report in the bugtracker.
The locale issue with file saving was fixed for the SVG-format, but remains for PostScript.
If the locales (LC_...) are set to a language which use comma-sign (',') as decimal-separator, the PostScript file will use them as such. This is wrong -- it shouldn't be localized, but fixed set to dot ('.').
Therefor, setting LC_ALL=C solves the issue temporary.
I've added this to the bugtracker, item 961568.
Tried version: snapshot 20040526
/ Gustav
excuse my poor english..
Adib Taraben wrote:
Gustav,
can you provide a file that cause errors?
thx,
Adib.
Yes, of course!
This is a testfile consisting of a single blue square. The selected output format is EPS. My locale variables are set to sv_SE.
-----------------
%!PS-Adobe-2.0 %%BoundingBox: 179 343 420 583 %%HiResBoundingBox: 179,658 343,193 419,202 582,737 0 841,89 translate 0.8 -0.8 scale gsave [1 0 0 1 0 0] concat 0 0 1 setrgbcolor newpath 224,572 323,941 moveto 224,572 623,371 lineto 524,002 623,371 lineto 524,002 323,941 lineto 224,572 323,941 lineto closepath eofill grestore showpage
---------------
Ghost Script will complain about the first comma, and won't render. If i manually change all the commas to dots, it works just fine.
I've also added this file in the tracker with the name testcase.eps
Thanx for looking in to this! I have never seen developers of any other software project reply so fast to bug reports and feature request.. :)
/Gustav
I've put a fix in CVS for this. It seems to work correctly, but it's a pretty drastic change. If people could test other "fancy" printing things, that would be good.
Also, I think as a side-effect from the image-in-a-rect work going on, the PS output no longer seems to include images; but that doesn't seem to be from my changes, I don't think.
On Fri, May 28, 2004 at 12:28:49AM +0200, Gustav Broberg wrote:
This is a testfile consisting of a single blue square. The selected output format is EPS. My locale variables are set to sv_SE.
%!PS-Adobe-2.0 %%BoundingBox: 179 343 420 583 %%HiResBoundingBox: 179,658 343,193 419,202 582,737 0 841,89 translate 0.8 -0.8 scale gsave [1 0 0 1 0 0] concat 0 0 1 setrgbcolor newpath 224,572 323,941 moveto 224,572 623,371 lineto 524,002 623,371 lineto 524,002 323,941 lineto 224,572 323,941 lineto closepath eofill grestore showpage
participants (4)
-
Adib Taraben
-
Bryce Harrington
-
Gustav Broberg
-
Kees Cook