Project: Eclipse_Platform_UI
Bug 138078 [Preferences] Preferences Store for i18n support
Reported: 2006-04-21 19:06:21 | Status: verified fixed

I'm using the French local. I run into a problem of the double parsing in French format (ex: 3,14 instead of 3.14). I got an exception in the following method of the class org.eclipse.ui.preferences.ScopedPreferenceStore public double getDouble(String name) { String value = internalGet(name); if (value == null) return DOUBLE_DEFAULT_DEFAULT; try { return Double.parseDouble(value); } catch (NumberFormatException e) { return DOUBLE_DEFAULT_DEFAULT; } } it should be: public double getDouble(String name) { String value = internalGet(name); if (value == null) return DOUBLE_DEFAULT_DEFAULT; try { return NumberFormat.getInstance().parse(value); } catch (NumberFormatException e) { return DOUBLE_DEFAULT_DEFAULT; } }

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/preferences/ScopedPreferenceStore.java