#1501: Include string null terminator in HDF5 attributes ---------------------------+------------------------------------------------ Reporter: barry.wardell | Owner: eschnett Type: enhancement | Status: new Priority: major | Milestone: Component: Carpet | Version: development version Keywords: | ---------------------------+------------------------------------------------ The HDF5 documentation <http://www.hdfgroup.org/HDF5/doc/RM/RM_H5T.html #Datatype-SetSize> states that the size of a string should include space for a null terminator. Up to now, the "name" attribute in HDF5 output files was stored as a string excluding the null terminator. This meant that when the attributed was read back, it could not be treated as a standard C string since it was missing the null terminator.
The attached patch changes the behaviour so that the null terminator is included.