[pcre-dev] Interesting behavior of pcretest in EBCDIC

Top Page
Delete this message
Author: Ze'ev Atlas
Date:  
To: Pcre Exim, Philip Hazel
Subject: [pcre-dev] Interesting behavior of pcretest in EBCDIC
Is there an explanation to the below difference (in the context of TESTIN1/TESTOUT1)In ASCII we get:/[[:space:]]+/    > \x09\x0a\x0c\x0d\x0b< 0:  \x09\x0a\x0c\x0d\x0b     /[[:blank:]]+/    > \x09\x0a\x0c\x0d\x0b< 0:  \x09     /[\s]+/    > \x09\x0a\x0c\x0d\x0b< 0:  \x09\x0a\x0c\x0d\x0b     /\s+/    > \x09\x0a\x0c\x0d\x0b< 0:  \x09\x0a\x0c\x0d\x0b
In EBCDIC, matches are found as well, but the printed result is different:/[[:space:]]+/    > \x09\x0a\x0c\x0d\x0b< 0:
/[[:blank:]]+/    > \x09\x0a\x0c\x0d\x0b< 0:
/[\s]+/    > \x09\x0a\x0c\x0d\x0b< 0:
/\s+/    > \x09\x0a\x0c\x0d\x0b< 0:
 Ze'ev Atlas