forked from pool/xerces-j2
Accepting request 18073 from Java:packages
Copy from Java:packages/xerces-j2 based on submit request 18073 from user mvyskocil OBS-URL: https://build.opensuse.org/request/show/18073 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xerces-j2?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
8dc2e9e0c9
commit
dd5abfa536
19
xerces-j2-parsing.patch
Normal file
19
xerces-j2-parsing.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
Index: xerces-2_8_1/src/org/apache/xerces/impl/XMLScanner.java
|
||||
===================================================================
|
||||
--- xerces-2_8_1.orig/src/org/apache/xerces/impl/XMLScanner.java 2006-09-14 03:23:36.000000000 +0200
|
||||
+++ xerces-2_8_1/src/org/apache/xerces/impl/XMLScanner.java 2009-08-17 12:02:22.811296491 +0200
|
||||
@@ -1026,6 +1026,14 @@
|
||||
if (XMLChar.isMarkup(c) || c == ']') {
|
||||
fStringBuffer.append((char)fEntityScanner.scanChar());
|
||||
}
|
||||
+ else if (XMLChar.isHighSurrogate(c)) {
|
||||
+ scanSurrogates(fStringBuffer);
|
||||
+ }
|
||||
+ else if (isInvalidLiteral(c)) {
|
||||
+ reportFatalError("InvalidCharInSystemID",
|
||||
+ new Object[] { Integer.toHexString(c) });
|
||||
+ fEntityScanner.scanChar();
|
||||
+ }
|
||||
} while (fEntityScanner.scanLiteral(quote, ident) != quote);
|
||||
fStringBuffer.append(ident);
|
||||
ident = fStringBuffer;
|
Reference in New Issue
Block a user