[pcre-dev] Interesting behavior of pcretest in EBCDIC

Page principale
Supprimer ce message
Auteur: Ze'ev Atlas
Date:  
À: Pcre Exim, Philip Hazel
Sujet: [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