[Bug 51358] Civilization 4: XML load error when trying to start
WineHQ Bugzilla
wine-bugs at winehq.org
Wed Aug 4 10:03:40 CDT 2021
https://bugs.winehq.org/show_bug.cgi?id=51358
Damjan Jovanovic <damjan.jov at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |damjan.jov at gmail.com
--- Comment #4 from Damjan Jovanovic <damjan.jov at gmail.com> ---
Created attachment 70403
--> https://bugs.winehq.org/attachment.cgi?id=70403
fix the regex quantifier format in datatypes.xsd
Please try this patch. Also please attach a +msxml trace, whether it works or
not, I'd like to see why our tests haven't caught this bug.
I think our XDR schema validation is broken, as dlls/msxml/datatypes.xsd has
regex quantifiers that are invalid as per
https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html#dt-quantifier
and break libxml2:
"Note: The regular expression language in the Perl Programming Language [Perl]
does not include a quantifier of the form S{,m}, since it is logically
equivalent to S{0,m}. We have, therefore, left this logical possibility out of
the regular expression language defined by this specification."
We should be using eg. "{0,14}" instead of "{,14}" in the XSD "pattern"
attribute values. Luckily those 2 lines in my patch should be all that needs
fixing.
I am very familiar with that libxml2 regex error message from bugs #29685 and
#43581.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list