This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4017 - Regex tests using multi-character escapes as range endpoints
Summary: Regex tests using multi-character escapes as range endpoints
Status: RESOLVED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Microsoft tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: metadata update confirmed 2008-11-01
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-24 17:38 UTC by Michael Kay
Modified: 2008-11-02 16:32 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-11-24 17:38:14 UTC
In a range such as [s-e], s and e must be single characters. The following tests in TestSet MS-Regex2006-07-15 break this rule by using an escape that represents a set of characters as the endpoint of a range.

These patterns are invalid but the tests are described as valid.

RegexTest_43
RegexTest_44
RegexTest_45
RegexTest_46
RegexTest_47
RegexTest_48
RegexTest_49
RegexTest_50
Comment 1 Michael Kay 2008-06-21 14:20:52 UTC
Agreed that these patterns (and hence these schemas) are invalid. 

(Noted that [a-\d] will actually parse, but not as a range; it's the rules in the prose that make it invalid).