Overview
| Artifact ID: | a73607f6ced9e24536709fd5994be8c52b3e363e |
|---|---|
| Ticket: | 1376892fffffffffffffffffffffffffffffffff
[:print:] wrong behaviour |
| User & Date: | billposer on 2006-03-02 12:26:40 |
Changes
- icomment:
Logged In: YES user_id=939324 >Interestingly, there are also many characters that are >isalnum||ispunct but not isprint. That seems very strange to >me; perhaps we need to find a real spec and use that instead >of guessing... :-) My experience suggests that a lot of software has been rather sloppily extended to handle Unicode with the result that for many features the behavior is not only non-standard not "common sense" but downright bizarre. For instance, try a range like [a-ALPHA] in your favorite regexp engine (other than Tcl). The common sense correct result is that this should match the characters U+0061 through U+03B1. Another plausible result would be an error because it crosses Unicode blocks (this is the gawk behaviour). But in addition to these I have found several other things, including matches that include not only alpha but the entire Greek range! Anyhow, the other problem is that I'm pretty sure that there isn't any standard governing the extension of the POSIX classes to Unicode. POSIX states some principles but they are very general, basically just that you have to preserve the ASCII classes. Unicode has classes of its own in the form of the General Character Properties, but they aren't the same and don't map to the POSIX classes in an obvious way.
- login: "billposer"
- mimetype: "text/plain"
- username: "billposer"