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

Fix fallback for unsupported encodings #6

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

digibeuk
Copy link
Collaborator

@digibeuk digibeuk commented Oct 5, 2023

golang does not support all encodings like gb2312

see : golang/go#24636 for example

to prevent a panic we need to have a fallback

see : https://pkg.go.dev/golang.org/x/text/encoding/ianaindex
see : https://cs.opensource.google/go/x/text/+/refs/tags/v0.13.0:encoding/ianaindex/tables.go

@digibeuk digibeuk added the bug Something isn't working label Oct 5, 2023
@digibeuk digibeuk force-pushed the fix-fallback-for-unsupported-encodings branch from 77b3c50 to fab2b15 Compare October 5, 2023 12:40
@digibeuk digibeuk merged commit 935fb39 into master Oct 11, 2023
@digibeuk digibeuk deleted the fix-fallback-for-unsupported-encodings branch October 11, 2023 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants