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 2006/07/24 23:29:23 UTC

DO NOT REPLY [Bug 40106] New: - PDF crash in PDFText class

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=40106>.
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=40106

           Summary: PDF crash in  PDFText class
           Product: Fop
           Version: 0.92
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pdf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: jmeijer@notice.nu


When rendering any .fo file with text in it AND using a font specified in the
userconfig file, the PDFText class throws an exception. This happens not on a PC
with jre 1.5 but does on Linux, running
java version "1.4.2"
gij (GNU libgcj) version 4.0.1 20050727 (Red Hat 4.0.1-5)
I finally nailed it on line 

   uniBytes = new String(a).getBytes("UnicodeBigUnmarked");

It seems that particular JVM implementation does not support that character
encoding. When I changed it to

   uniBytes = new String(a).getBytes("UTF-16BE");

UTF-16BE being the new notation worked on PC **and** the linux box

-- 
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 40106] - PDF crash in PDFText class

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=40106>.
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=40106


jeremias@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From jeremias@apache.org  2006-07-28 10:04 -------
Change done: http://svn.apache.org/viewvc?rev=426465&view=rev

Thanks!

-- 
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 40106] - PDF crash in PDFText class

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=40106>.
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=40106





------- Additional Comments From christian.geisert@isu-gmbh.de  2006-07-25 07:17 -------
Mmmh, looking at http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html
and http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html its looks
like a conforming JVM should support both encodings.
UnicodeBigUnmarked is the Canonical Name for the java.lang API but if this is
the only problem which prevents gcj from running FOP I'm ok with the change.
Other opinions?

-- 
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 40106] - PDF crash in PDFText class

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=40106>.
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=40106


jeremias@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Additional Comments From jeremias@apache.org  2006-07-26 06:50 -------
Yes, I think this is a safe change. "UnicodeBigUnmarked" is a synonym for
"UTF-16BE". There's another reference about which encodings must be supported by
a JVM: http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc

Still, GNU Classpath would do good to add those synonyms, too.

-- 
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.