
On 1/6/06, Mathieu Dimanche <mdimanche@...8...> wrote:
I wandered through the code and finally found what was broken with these page dimensions.
The units (and their factor to pixels) are read from share/ui/units.txt (and not the xml file as bulia stated, it's commented out as "buggy").
This file contains a double floating value which is read through sscanf, but sscanf is bound to the locale settings. So here, in France, my locale is FR_fr, and the separator in floats is a comma ',', not a dot '.'
Thanks for tracking this down! I think you can commit your fix, it seems safe to me.
I think it was Bryce who wrote this originally. Bryce, can you please remove the units.xml code and the file itself, so it does not confuse people anymore? Or, switch to *.xml (what exactly is "buggy" in it) and remove the *.txt? Note that for XML, we have well-tested locale-independent read/write routines, so this problem would likely never have bitten us with XML.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org