Extension floating point default value and locales

Asked by Nick on 2010-04-28

I'm writing gcode tools extension (http://www.cnc-club.ru/forum/viewtopic.php?f=33&t=35#p65) and faced another problem:
How can I adjust proper default value to the floating point parameter?

If I run Inkscape in Russian locale, then it thinks that "0.02" is "0", because in Russian locale default delimiter is "," instead of "." in English one. This problem may appear in other locales.

Question information

English Edit question
Inkscape Edit question
No assignee Edit question
Last query:
Last reply:
jazzynico (jazzynico) said : #1

Confirmed with French OS locale. Looks like a bug in the extension system.
When the value is modified in the extension dialog, it is correctly saved to the preferences.xml file (as 0.02) and correctly displayed in the UI (as 0,02).
Works as expected if the locale default delimiter is set to ".".
Converting this question to a bug report.

Can you help with this problem?

Provide an answer of your own, or ask Nick for more information if necessary.

To post a message you must log in.