Effects do not work with locales using "," for decimals

Bug #166608 reported by Josef Vybíral (cornelius)
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

When locales are set to language which uses "," as a separator for
decimals, effects returns error and does not apply. Example error:

Executing: python /usr/local/share/inkscape/extensions/lindenmayer.py
--id=path1 248 --order=3 --step=25,000000 --angle=16,000000 --
axiom="++F" --rules="F=FF-[-F +F+F]+[+F-F-F]"
usage: lindenmayer.py [options] SVGfile

lindenmayer.py: error: option --step: invalid floating-point value: '25,
000000'
Extension::Script: Unknown error for pclose
: spch

** (inkscape:8944): CRITICAL **: file extension/implementation/script.
cpp: line 636 (virtual void Inkscape::Extension::Implementation::Script::
effect(Inkscape:: Extension::Effect*, SPView*)): assertion `mydoc !=
NULL' failed

It is probably caused by passing not "unlocalised" values to the
command line(as seen on the dump). I tried this on LANG set to cs_CZ
but I think this can happen on every locale using ",". Solution would be
telling inkscape to pass values with decimal separator converted to "."
to the effects script.

System specs: GNU/Linux FC3, locale cs_CZ, Inkscape: current CVS.

Tags: other
Revision history for this message
Aaron C Spike (acspike) wrote :

Please try again. I just commited a possible fix.

Revision history for this message
Josef Vybíral (cornelius) (cornelius-cz) wrote :

In current CVS is this bug fixed, thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.