Mantis - Resin
Viewing Issue Advanced Details
374 minor always 08-30-05 00:00 11-30-05 14:42
user370  
 
normal  
closed 3.0.14  
3.0.14 fixed  
none    
none 3.0.15  
0000374: CDATA character set too small?
RSN-418
The caucho XmlParser has this definition of a valid character in a CDATA section:

private boolean isChar(int ch)
  {
    return (ch >= 0x20 && ch <= 0xd7ff ||
        ch == 0x9 ||
        ch == 0xa ||
        ch == 0xd ||
        ch >= 0xe000 && ch <= 0xfff0);
  }


But the XML spec (http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char) [^] says:

Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]

Note that caucho doesn't include FFF1 to FFFD.

Is this a bug?

Notes
(0000431)
user383   
08-30-05 00:00   
I have encountered this as well and I think it's a bug. This isn't much of problem in English, but it is when dealing with multibyte characters in UTF-8.
(0000432)
ferg   
08-30-05 00:00   
xml/0057