[Nexus] File::getStrData issue

Tobias.Richter at diamond.ac.uk Tobias.Richter at diamond.ac.uk
Mon Oct 13 18:07:18 BST 2014


Hi Owen,

What version of NeXus are you using?
The NeXus API was expecting strings to the padded with "\0". Or you could call that an off-by-one error.

I think I may have fixed that in the master branch on github. Please check with that and report.

Regards,

Tobias



> -----Original Message-----
> From: NeXus [mailto:nexus-bounces at nexusformat.org] On Behalf Of
> owen.arnold at stfc.ac.uk
> Sent: 13 October 2014 17:12
> To: nexus at nexusformat.org
> Subject: [Nexus] File::getStrData issue
> 
> Hi,
> 
> On OSX, only, for the NXSPE file here
> https://drive.google.com/file/d/0Bx07Hfz4WgYMSDAyQXpVbkE5WUk/view?usp=s
> haring, the test program fails to properly extract the string data. It
> should print out NXSPE, but it prints NXSP instead!
> 
> The file looks fine in HDFView, I'm not sure why it can't be extracted
> properly via the APIs on OSX. Other files of this type do give the the
> string correctly. If the field is corrupted, I don't know why the nexus
> libraries on other OS version are OK with this.
> 
> Thanks in advance,
> Owen.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Scanned by iCritical.


-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 






More information about the NeXus mailing list