Extension floating point default value and locales

Bug #571196 reported by jazzynico
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
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

Revision history for this message
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)
Changed in inkscape:
assignee: nobody → JazzyNico (jazzynico)
milestone: none → 0.48
status: Confirmed → In Progress
Revision history for this message
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)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.