bulia byak wrote:
I applied your first three patches, thanks.
- When drawing a polygon (the star) numbers in the points element are
locale dependent, strange the star is drawn correctly. 2. The root document with and height are also locale dendent.
Yes, and probably other places, too. What we need to do is just search for "printf" and see if the output of it goes into SVG, and if so, replace them (some printfs print debug messages on screen, you can leave them alone). Now that you know what to do, it should be easy :)
I think that they were all cleaned up in /xml and /svg, and now it is mostly the special shapes that have sprintf()'s left.
Mental's use of <sstream> works nicely. I have used that elsewhere to format floats free from locale worries.
Look at how /svg/svg-path.cpp , line 631 uses Inkscape::SVGOStringStream. It is small and simple.
Bob