diff --git a/ChangeLog b/ChangeLog index 112c1b86..4c8b03b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Fri Feb 8 11:33:15 CET 2008 Daniel Veillard + + * xmlregexp.c: apply patch from Andrew Tosh to fix behaviour + when '.' is used in a posCharGroup + * test/schemas/poschargrp0_0.* result/schemas/poschargrp0_0_0*: + added the test to the regression suite + Fri Feb 8 10:54:09 CET 2008 Daniel Veillard * dict.c: applied patch from Florent Guilian to remove an diff --git a/result/schemas/poschargrp0_0_0 b/result/schemas/poschargrp0_0_0 new file mode 100644 index 00000000..de14f4d0 --- /dev/null +++ b/result/schemas/poschargrp0_0_0 @@ -0,0 +1 @@ +./test/schemas/poschargrp0_0.xml validates diff --git a/result/schemas/poschargrp0_0_0.err b/result/schemas/poschargrp0_0_0.err new file mode 100644 index 00000000..e69de29b diff --git a/test/schemas/poschargrp0_0.xml b/test/schemas/poschargrp0_0.xml new file mode 100644 index 00000000..0800b1bc --- /dev/null +++ b/test/schemas/poschargrp0_0.xml @@ -0,0 +1,2 @@ + +value \ No newline at end of file diff --git a/test/schemas/poschargrp0_0.xsd b/test/schemas/poschargrp0_0.xsd new file mode 100644 index 00000000..3243a2ff --- /dev/null +++ b/test/schemas/poschargrp0_0.xsd @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/xmlregexp.c b/xmlregexp.c index a3e16c57..52e484cb 100644 --- a/xmlregexp.c +++ b/xmlregexp.c @@ -5052,7 +5052,7 @@ xmlFAParseCharRange(xmlRegParserCtxtPtr ctxt) { static void xmlFAParsePosCharGroup(xmlRegParserCtxtPtr ctxt) { do { - if ((CUR == '\\') || (CUR == '.')) { + if (CUR == '\\') { xmlFAParseCharClassEsc(ctxt); } else { xmlFAParseCharRange(ctxt);