Descriptionencoding/asn1: promote untyped strings to UTF8 as needed.
Previously, strings that didn't have an explicit ASN.1 string type
were taken to be ASN.1 PrintableStrings. This resulted in an error if
a unrepresentable charactor was included.
For compatibility reasons, I'm too afraid to switch the default string
type to UTF8String, but this patch causes untyped strings to become
UTF8Strings if they contain a charactor that's not valid in a
PrintableString.
Fixes issue 3791.
Patch Set 1 #Patch Set 2 : diff -r b7a1cd9f1a6c https://code.google.com/p/go/ #Patch Set 3 : diff -r b7a1cd9f1a6c https://code.google.com/p/go/ #Patch Set 4 : diff -r b7a1cd9f1a6c https://code.google.com/p/go/ #
Total comments: 3
Patch Set 5 : diff -r b7a1cd9f1a6c https://code.google.com/p/go/ #Patch Set 6 : diff -r 695f65745351 https://code.google.com/p/go/ #
Total comments: 2
Patch Set 7 : diff -r 8241ffc8686e https://code.google.com/p/go/ #
MessagesTotal messages: 13
|