Author: Ze'ev Atlas Date: To: Pcre Exim, Philip Hazel Subject: [pcre-dev] A question about testinput18
Hi PhilipI am testing PCRE2 21 RC1 in EBCDIC (on native z/OS). There were quite a few changes in your test suite so I will have to go back and redo some of the EBCDIC specific stuff. But before I do that I looked at my output vs. yours in what I deemed as relevant tests. That, in order to identify differences and either explain them or develop an EBCDIC counterpart. The most striking differences were in test 18.
in test 18 you get:-----------------------/abc/ abc\=find_limits** Ignored with POSIX interface: find_limits 0: abc
/abc/ abc\=partial_hard** Ignored with POSIX interface: partial_hard 0: abc
# Real tests
/abc/ abc 0: abc
/¬abc|def/ abcdef 0: abc abcdef\=notbol 0: def
/.*((abc)$|(def))/ defabc 0: defabc 1: abc 2: abc defabc\=noteol 0: def 1: def 3: def----------------------------------While I get:
/abc/ abc\=find_limits** Invalid pattern delimiter ' ' (x40).
/abc/ abc\=partial_hard** Invalid pattern delimiter ' ' (x40).
# Real tests
/abc/ abc** Invalid pattern delimiter ' ' (x40).
/¬abc|def/ abcdef** Invalid pattern delimiter ' ' (x40). abcdef\=notbol
/.*((abc)$|(def))/ defabc** Invalid pattern delimiter ' ' (x40). defabc\=noteol-----------------------------------------
I am not sure what to make of it since I should have POSIX work correctly. Does the POSIX part rely on specific ASCII?I admit that I did not look at test 18 in the past.
Another example:--------------------------------------- 0: the quick brown fox\= Expect no match The Quick Brown FoxNo match: POSIX code 17: match failed
/the quick brown fox/i the quick brown fox 0: the quick brown fox The Quick Brown Fox 0: The Quick Brown Fox
/(*LF)abc.def/\= Expect no match abc\ndefNo match: POSIX code 17: match failed----------------------------------------------vs./the quick brown fox/ the quick brown fox** Invalid pattern delimiter ' ' (x40).\= Expect no match The Quick Brown Fox
/the quick brown fox/i** Unrecognized modifier 'i' in 'i' the quick brown fox The Quick Brown Fox
/(*LF)abc.def/\= Expect no match** Invalid pattern delimiter '\' (xe0). abc\ndef
Ze'ev Atlas