Skip to content

id3v2: tolerate odd-length UTF-16 text frames#114

Open
SAY-5 wants to merge 1 commit into
dhowden:masterfrom
SAY-5:fix-id3v2-utf16-odd-length
Open

id3v2: tolerate odd-length UTF-16 text frames#114
SAY-5 wants to merge 1 commit into
dhowden:masterfrom
SAY-5:fix-id3v2-utf16-odd-length

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 12, 2026

Copy link
Copy Markdown

Some encoders append a stray trailing byte (commonly a null terminator) to UTF-16 text frames, which made decodeUTF16 fail and abort metadata reading; this drops the odd byte instead, matching how mutagen and TagLib handle such files. Closes #87.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

panic: invalid encoding: expected even number of bytes for UTF-16 encoded text

1 participant