DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42832>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42832 Summary: [PATCH] Fix in AWT preview if used with non-english locale Product: Fop Version: all Platform: Macintosh OS/Version: Mac OS X 10.4 Status: NEW Severity: trivial Priority: P3 Component: awt renderer AssignedTo: email@example.com ReportedBy: [EMAIL PROTECTED] The description here is longer than the patch :) The AWT preview window uses DecimalFormat to format the current zoom level, which (correctly) on a German locale results in comma being used instead of dot as a decimal separator. However, when re-reading it using Double.parseDouble is requires a dot, because parseDouble is not locale aware, resulting in a NumberFormatException being thrown. Possible fixes: - Use a different number parser (non-trivial) - Ensure that the number is always formated with a dot as decimal separator (as done in the attached patch) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.