Skip to content

Commit 4bc3e9b

Browse files
committed
Update release notes wrt #86 fix
1 parent 14b58b9 commit 4bc3e9b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

release-notes/VERSION

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Project: aalto-xml
66

77
1.3.3 (not yet released)
88

9+
#86: Multi-byte characters are split in writeCData() if first byte sits
10+
right at the end of the buffer
11+
(reported, fix contributed by @tatsel)
912
#90: Update stax2-api dep to 4.2.2 (from 4.2)
1013

1114
1.3.2 (25-Apr-2022)

src/main/java/com/fasterxml/aalto/out/ByteXmlWriter.java

+5-7
Original file line numberDiff line numberDiff line change
@@ -794,17 +794,15 @@ protected int writeCDataContents(char[] cbuf, int offset, int len)
794794
{
795795
if (_surrogate != 0) {
796796
outputSurrogates(_surrogate, cbuf[offset]);
797-
// reset the temporary surrogate storage
797+
// reset the temporary surrogate storage
798798
_surrogate = 0;
799799
++offset;
800800
--len;
801801
}
802-
/* Unlike with writeCharacters() and fastWriteName(), let's not
803-
* worry about split buffers here: this is unlikely to become
804-
* performance bottleneck. This allows keeping it simple; and
805-
* should it matter, we could start doing fast version here
806-
* as well.
807-
*/
802+
// Unlike with writeCharacters() and fastWriteName(), let's not
803+
// worry about split buffers here: this is unlikely to become
804+
// performance bottleneck. This allows keeping it simple; and
805+
// should it matter, we could start doing fast version here as well.
808806
len += offset; // now marks the end
809807

810808
main_loop:

0 commit comments

Comments
 (0)