2
0
Эх сурвалжийг харах

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

git-svn-id: trunk@14648 -
sergei 16 жил өмнө
parent
commit
a24b84c11b

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

@@ -319,7 +319,7 @@ begin
   EndPos := 1;
   EndPos := 1;
   while EndPos <= Length(s) do
   while EndPos <= Length(s) do
   begin
   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
     begin
       wrtChars(@s[StartPos], EndPos - StartPos);
       wrtChars(@s[StartPos], EndPos - StartPos);
       SpecialCharCallback(Self, s, EndPos);
       SpecialCharCallback(Self, s, EndPos);