Ticket #17 (closed defect: fixed)
XML interface ignores length passed to NXmakedata for NX_CHAR arrays
| Reported by: | Freddie Akeroyd | Owned by: | Mark Koennecke |
|---|---|---|---|
| Priority: | major | Milestone: | NeXus 4.1 Ready |
| Component: | applications | Version: | 4.0.0 |
| Keywords: | Cc: |
Description
The XML API NXputdata assumes the data passed is NULL terminated and ignores the length previously specified in a call to NXmakedata. This behaviour is different to that of the HDF API and could cause problems.
Change History
comment:3 Changed 5 years ago by Freddie Akeroyd
- Version set to 4.0.0
Mark, can you see an easy way to fix this? At the moment the array dimensions information for NX_CHAR is not stored anywhere during NXmakedata so NXputdata does not know how many characters to write. If we treated character nodes as custom nodes rather than opaque nodes during a write we could store this information in the node custom data section, but would doing this mess up other things?
Freddie
Note: See
TracTickets for help on using
tickets.
