go/src/pkg/encoding
Adam Langley eeffa738a9 encoding/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 #3791.

R=golang-dev, bradfitz, r, r
CC=golang-dev
https://golang.org/cl/6348074
2012-07-10 18:23:30 -04:00
..
ascii85 encoding/ascii85: fix panic caused by special case 2012-04-04 09:52:42 -04:00
asn1 encoding/asn1: promote untyped strings to UTF8 as needed. 2012-07-10 18:23:30 -04:00
base32 encoding/base32, encoding/base64: removed unneeded break label 2012-06-25 17:18:50 -04:00
base64 encoding/base32, encoding/base64: removed unneeded break label 2012-06-25 17:18:50 -04:00
binary encoding/binary: improve package comment. 2012-03-05 10:02:30 -05:00
csv encoding/csv, encoding/xml: report write errors 2012-06-25 16:00:35 -04:00
gob encoding/gob: fix bug in Register 2012-07-03 10:05:27 -07:00
hex encoding/hex: vet the test prints 2012-02-10 09:44:56 +11:00
json encoding/json: add Number type 2012-06-25 17:36:09 -04:00
pem encoding/pem: ignore spaces and tabs at the end of header lines. 2012-04-12 12:33:52 -04:00
xml encoding/csv, encoding/xml: report write errors 2012-06-25 16:00:35 -04:00