WG15 Defect Report Ref: 9945-2-44
Topic: regular expression error codes

This is an approved interpretation of 9945-2:1993.


Last update: 1997-05-20



	Topic:			regular expression error codes
	Relevant Sections:	Table B-10
	Classification:		Unaddressed issue.

Defect Report:

(from Andrew Hume Doug McIlroy)

Interface Issues

Issue E


 [16] Must the regular-expression error	codes  be  distinct?
     [Table B-10]

Proposed Solution:

     The values	in Table B-10, along with any  other	REG_
values	defined	 by the	implementation (line 430, page 730),
must all be different.


     A conforming  regcomp() could return    REG_BADPAT	 for
every  syntax error.  Nevertheless, it is important that the
other codes be distinct, lest a	C switch  on  the  codes  be

WG15 response for 9945-2:1993 

The standard does not speak to this issue, and no conformance
distinction can be made between alternative implementations
based on this. This is being referred to the sponsor.

Rationale for Interpretation: