Overview
| Artifact ID: | 4f7e1fc99f20b90ccbee3ae6e36b0af4a67797fd |
|---|---|
| Ticket: | 1376892fffffffffffffffffffffffffffffffff
[:print:] wrong behaviour |
| User & Date: | billposer on 2006-02-16 15:15:12 |
Changes
- icomment:
Logged In: YES user_id=939324 Donal, I think that your patch does what you intended, but what you intended and what I intended aren't the same. What you've got treats [:print:] as [:alnum:] U [:punct:] U [:space:], which is what Perl does. What I intended was [:alnum:] U [:punct:] U SPACE, where SPACE = 0x20. (The simple test is to see whether [[:print:]] matches tab.) That is my understanding of the POSIX standard. I just checked a few other regexp engines. TRE, which makes a point of strict POSIX conformance, follows my interpretation, as do GNU awk, java.util.regex, ruby, vim, zsh, and, interestingly, pcre. So I would say that Perl has got it wrong. The necessary fix is just to delete the two bits involving NUM_SPACE_RANGE from your patch.
- login: "billposer"
- mimetype: "text/plain"
- username: "billposer"