You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like the documentation to be changed so it's explicit that we don't support multi-byte padding characters as I don't think it makes sense.
The text was updated successfully, but these errors were encountered:
josselin-c
changed the title
encoding/base64: document if padchar can be > RuneSelf
encoding/base64: document if padchar can multi-byte
Feb 28, 2017
josselin-c
changed the title
encoding/base64: document if padchar can multi-byte
encoding/base64: document that padchar cannot be multi-byte
Feb 28, 2017
What version of Go are you using (
go version
)?Go 1.8
What did you expect to see?
Looking at encoding/base64 we see that WithPadding accepts a rune:
https://golang.org/pkg/encoding/base64/#Encoding.WithPadding
Looking at the current implementation, the padding character can not be a multi-byte rune as the code compare bytes with padChar:
go/src/encoding/base64/base64.go
Line 285 in 87b1aaa
What did you see instead?
I would like the documentation to be changed so it's explicit that we don't support multi-byte padding characters as I don't think it makes sense.
The text was updated successfully, but these errors were encountered: