Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
votable: fix/improve output of unicodeChar columns
When using votcopy to write a BINARY or BINARY2 serialized VOTable in which some (non-empty) columns have datatype="unicodeChar", there was a serious bug which meant the output was inconsistent with the FIELD declaration (FIELD said datatype="unicodeChar", but the output stream used 1-byte characters). This rendered the output VOTable unreadable (reported by Peter Draper). Fixed. Some other slight improvement to handling of unicodeChar columns too: columns that originally had datatype="unicodeChar" (originating from a VOTable) are now written out with the same datatype, rather than being squashed to type char. However, it's still a bit of a mess, partly because unicode handling is sloppy in STIL in general, and partly because VOTable's unicodeChar datatype value doesn't really make sense (VOTable 1.3 and earlier). The first issue may require more work somewhere down the line, e.g. STIL becoming aware of whether columns are Unicode or ASCII-alike, at least for output. The second has been acknowledged in recent VOTable discussions, and may be resolved or improved in a future version of the VOTable standard.
- Loading branch information
Showing
5 changed files
with
104 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters