mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-09 04:58:16 +03:00
applied patch from Kuba Nowakowski fixing bug #313982 also added the test
* xmlschemastypes.c: applied patch from Kuba Nowakowski fixing bug #313982 * result/schemas/bug313982* test/schemas/bug313982*: also added the test case to the regression suite. Daniel
This commit is contained in:
parent
a4181227e9
commit
4f917e2416
@ -1,3 +1,10 @@
|
||||
Mon Aug 22 18:00:18 CEST 2005 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xmlschemastypes.c: applied patch from Kuba Nowakowski fixing bug
|
||||
#313982
|
||||
* result/schemas/bug313982* test/schemas/bug313982*: also added
|
||||
the test case to the regression suite.
|
||||
|
||||
Mon Aug 22 17:50:20 CEST 2005 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* testRegexp.c: printed the wrong string
|
||||
|
1
result/schemas/bug313982_0_0
Normal file
1
result/schemas/bug313982_0_0
Normal file
@ -0,0 +1 @@
|
||||
./test/schemas/bug313982_0.xml validates
|
0
result/schemas/bug313982_0_0.err
Normal file
0
result/schemas/bug313982_0_0.err
Normal file
4
test/schemas/bug313982_0.xml
Normal file
4
test/schemas/bug313982_0.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testDecimalFacet xmlns="http://www.foo.com"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.foo.com bug313982_0.xsd">0.99</testDecimalFacet>
|
11
test/schemas/bug313982_0.xsd
Normal file
11
test/schemas/bug313982_0.xsd
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema targetNamespace="http://www.foo.com" elementFormDefault="qualified"
|
||||
xmlns="http://www.foo.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<xsd:element name="testDecimalFacet">
|
||||
<xsd:simpleType>
|
||||
<xsd:restriction base="xsd:decimal">
|
||||
<xsd:minInclusive value="0"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
@ -2284,6 +2284,8 @@ xmlSchemaValAtomicType(xmlSchemaTypePtr type, const xmlChar * value,
|
||||
*cptr++ = *cur++;
|
||||
len++;
|
||||
} else if (*cur == '.') {
|
||||
if (len == 0)
|
||||
len++;
|
||||
if (dec != ~0u)
|
||||
goto return1; /* multiple decimal points */
|
||||
cur++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user