GNOME Bugzilla – Bug 599873
TagLib.Tag sometimes returns "\0" strings
Last modified: 2018-08-17 19:50:22 UTC
For mp3 file from bug 599806, TagLib# returns a "\0" string for FirstComposer, Conductor and Copyright. It should rather trim NULL bytes and return an empty string.
Another sample mp3 file can be found in bug 605570
Just encountered the same problem in Basenji. Taglib# returns "\0" strings for gif comments. Please see the following bugreport, sample files are attached (ranting2.gif). https://bugs.launchpad.net/basenji/+bug/1084428
To be more precise, the bug does not only affect empty strings, the strings I'm talking about have actual content and are terminated by '\0'. Concatenating those strings and passing them to non-managed dependencies will result in data loss (as in my case).
taglib-sharp has moved to Github a while ago. Furthermore, GNOME Bugzilla will be shut down and replaced by gitlab.gnome.org. If the problem reported in this Bugzilla ticket is still valid, please report it to https://github.com/mono/taglib-sharp/issues instead. Thank you! Closing this report as WONTFIX as part of Bugzilla Housekeeping.