Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return None for non-UTF-8 tags #12

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

linkmauve
Copy link

This prevents a panic when opening a file which contains non-UTF-8 tags, but still prevents users from accessing them.

In the future it might be useful to provide an API giving the raw bytes if the user wants to try guessing it, or maybe even add an (optional) encoding crate dependency for formats which declare their encoding.

Fixes #6.

This prevents a panic when opening a file which contains non-UTF-8 tags,
but still prevents users from accessing them.

In the future it might be useful to provide an API giving the raw bytes
if the user wants to try guessing it, or maybe even add an (optional)
encoding crate dependency for formats which declare their encoding.

Fixes nickbrowne#6.
@nickbrowne
Copy link
Owner

Nice one, thanks for doing this 👍

@nickbrowne nickbrowne merged commit ade9c91 into nickbrowne:master Feb 12, 2020
@linkmauve linkmauve deleted the fix-shift_jis-tags branch February 12, 2020 11:50
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 on non-UTF-8 tags in music file
2 participants