[pcre-dev] Interesting behavior of pcretest in EBCDIC

Αρχική Σελίδα
Delete this message
Συντάκτης: Ze'ev Atlas
Ημερομηνία:  
Προς: Pcre Exim, Philip Hazel
Αντικείμενο: [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