[pcre-dev] Interesting behavior of pcretest in EBCDIC

Pàgina inicial
Delete this message
Autor: Ze'ev Atlas
Data:  
A: Pcre Exim, Philip Hazel
Assumpte: [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