|
From: Ian S. <ian...@tr...> - 2007-12-28 00:47:38
|
Oh, ok, I have a theory: This may be a locale problem and a bug in the parsing code. The immediate workaround would be to set your locale for java (or perhaps the whole machine if that can't be done--use the windows regional settings control panel) to be English (en) with the region being US. The problem is that the french locale (probably set to something like fr, FR_EURO) using "," as the separator for floating point numbers and parts of our code must depend on "." being the separator (which is the case with en, US). http://www.exampledepot.com/egs/java.util/SetDefLocale.html If you want to try to actually fix the problem (to great applause from Europe!) I'd look at the XMLElement.java file (in ogoglio-common/src/main/java/nanoxml) around line 1114. Float.parseFloat isn't interantionalized http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4449157 so I would figure that it could be changed to use DecimalFormat http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html Please advise if you get this to work! thanks ian smith |