[Hdf-forum] HDF5 1.8.4 & String attribute with fortran

Giraudon Cyril cyril.giraudon at free.fr
Wed Jan 13 09:45:45 EST 2010


Hello,

I use HDF5 1.8.4  compiled with ifort 11.1 on a linux Ubuntu 9.04 box.

If I write a string attribute in fortran, then when I read it the string
is terminated with an invisible null character.
So it is very difficult to deal with it (concatanation is very
hasardeous for instance).

Is it a bug or the right behaviour ?

Thanks a lot,

Cyril.



Note :
If I write a string attribute in python/pytables, then when I read it
the string is NOT  terminated with an invisible null character.




More information about the Hdf-forum mailing list