Ticket #93 (closed defect: invalid)
ASCII Character 160 (Hex A0) can trigger BUFFER EMPTY
| Reported by: | hjgalbraith | Owned by: | ser |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Stream | Version: | 3.1.4 |
| Severity: | normal | Keywords: | |
| Cc: | Ruby version: | 1.8.4 | |
| Operating system: | Windows |
Description
I was testing some XML files and ran across hex A0 characters that were somehow embedded. While this does not generate an exception, it does cause the parser to ignore the remaining data in the file. I suspect that hex A0 is an anomaly, but it does suggest that the parser should ignore unused ascii characters such as this (ASCII 160)or generate an exception so that the application is notified that there is a problem.
The work-around is to scan each file for offending characters and change or remove them. Not pretty and a performance issue.
I am sorry, but I don't know the version number of REXML that is included with my Ruby release.
