Enet4 / dicom-rs

Rust implementation of the DICOM standard
https://dicom-rs.github.io
Apache License 2.0
403 stars 75 forks source link

Trim \0 characters from photometric interpretation #451

Closed dougyau closed 5 months ago

dougyau commented 5 months ago

trim() does not remove \0 characters, it needs to be done using trim_matches.

dougyau commented 5 months ago

Yes, null characters should not be there, but I have found a specific case, and Osko Xmaru Series CR which sends it that way.