Comment 10 for bug 1425317

Revision history for this message
David Mathog (mathog) wrote :

Ah, I see it. The problem is that when floats are written to strings to be passed as an SVG file into the main program this
happens, where the top one is de_DE and the lower en_US:

< transform="matrix(1,000000,-0,000000,0,000000,1,000000,68,699489,260,398065)"
---
> transform="matrix(1.000000,-0.000000,0.000000,1.000000,68.699489,260.398065)"

The matrix code handling code later in inkscape is pulling the 5th and 6th values out of that matrix, and they are both zero, so that explains what we are seeing.

Those sorts of conversions are all over the place, but only this one causes problems. Which suggests that pretty much everywhere else it accepts the comma separator form. It looks like all the conversions that do not cause problems occur as single values, like:

dx="0,0000"

it is only the transform matrix that cannot be parsed. Any other comma delimited float lists would do this too.

Which makes me wonder, is this a bug in the EMF handling or in the matrix handling? That would depend I guess about the SVG standard says about locales. Before I change anything let's let Tav weigh in.