You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/07/07 16:44:54 UTC
DO NOT REPLY [Bug 42832] New: - [PATCH] Fix in AWT preview if used with non-english locale
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: fop-dev@xmlgraphics.apache.org
ReportedBy: max@berger.name
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.
DO NOT REPLY [Bug 42832] - [PATCH] Fix in AWT preview if used with non-english locale
Posted by bu...@apache.org.
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
------- Additional Comments From max@berger.name 2007-07-07 07:45 -------
Created an attachment (id=20476)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20476&action=view)
Path for Awt preview panel
--
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.
DO NOT REPLY [Bug 42832] - [PATCH] Fix in AWT preview if used with non-english locale
Posted by bu...@apache.org.
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
a_l.delmelle@pandora.be changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From a_l.delmelle@pandora.be 2007-07-07 11:44 -------
Patch applied. see http://svn.apache.org/viewvc?view=rev&rev=554240
Thanks, Max!
--
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.