1 PCRE2 version 10.32-RC1 2018-02-19
2 # This is a specialized test for checking, when PCRE2 is compiled with the
3 # EBCDIC option but in an ASCII environment, that newline, white space, and \c
4 # functionality is working. It catches cases where explicit values such as 0x0a
5 # have been used instead of names like CHAR_LF. Needless to say, it is not a
6 # genuine EBCDIC test! In patterns, alphabetic characters that follow a
7 # backslash must be in EBCDIC code. In data, NL, NEL, LF, ESC, and DEL must be
8 # in EBCDIC, but can of course be specified as escapes.
10 # Test default newline and variations
116 # For repeated items, use an atomic group so that the output is the same
117 # for DFA matching (otherwise it may show multiple matches).
189 # Test \c functionality
191 /\
\83@\
\83A\
\83b\
\83C\
\83d\
\83E\
\83f\
\83G\
\83h\
\83I\
\83J\
\83K\
\83l\
\83m\
\83N\
\83O\
\83p\
\83q\
\83r\
\83S\
\83T\
\83u\
\83V\
\83W\
\83X\
\83y\
\83Z/
192 \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f
193 0: \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a
195 /\
\83[\
\83\\
\83]\
\83^\
\83_/
196 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f
197 0: \x1b\x1c\x1d\x1e\x1f
204 Failed: error 168 at offset 3: \c\x20must\x20be\x20followed\x20by\x20a\x20letter\x20or\x20one\x20of\x20[\]^_\x3f