浏览代码

* Fixed CDATA section splitting which got broken due to excessive optimization in r14194.

git-svn-id: trunk@14648 -
sergei 15 年之前
父节点
当前提交
a24b84c11b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-xml/src/xmlwrite.pp

+ 1 - 1
packages/fcl-xml/src/xmlwrite.pp

@@ -319,7 +319,7 @@ begin
   EndPos := 1;
   while EndPos <= Length(s) do
   begin
-    if (s[EndPos] < 'A') and (Char(ord(s[EndPos])) in SpecialChars) then
+    if (s[EndPos] < #128) and (Char(ord(s[EndPos])) in SpecialChars) then
     begin
       wrtChars(@s[StartPos], EndPos - StartPos);
       SpecialCharCallback(Self, s, EndPos);