Skip to content

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.

3 participants