Extension floating point default value and locales

Bug #571196 reported by jazzynico on 2010-04-28
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Low
jazzynico

Bug Description

Based on Question #108634, by Nick.
--

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.

Related branches

jazzynico (jazzynico) wrote :

Confirmed with French OS locale on Windows XP. Default float values (set in .inx files) have their decimal part replaced with 0.
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 ".".

tags: added: extensions-plugins
Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
jazzynico (jazzynico) on 2010-05-02
Changed in inkscape:
assignee: nobody → JazzyNico (jazzynico)
milestone: none → 0.48
status: Confirmed → In Progress
jazzynico (jazzynico) wrote :

Fix committed in bzr revision 9391.

Tested successfully on Windows XP and Ubuntu 9.10, French and English locales.

Changed in inkscape:
status: In Progress → Fix Committed
jazzynico (jazzynico) on 2010-08-24
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers