]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: case-insensitive encoding recognition
authorGiulio Iotti <dullgiulio@gmail.com>
Mon, 31 Aug 2015 16:08:49 +0000 (19:08 +0300)
committerRuss Cox <rsc@golang.org>
Wed, 25 Nov 2015 17:09:28 +0000 (17:09 +0000)
commit0b55be1ba2cf1cbb84ef4292942e6532df0b22ad
tree2c614253491db4f5bf1cc8fb5349a61857cac77a
parent97c859f8da0c85c33d0f29ba5e11094d8e691e87
encoding/xml: case-insensitive encoding recognition

From the XML spec: "XML processors should match character encoding
names in a case-insensitive way"

Fixes #12417.

Change-Id: I678c50152a49c14364be62b3f21ab9b9b009b24b
Reviewed-on: https://go-review.googlesource.com/14084
Reviewed-by: Russ Cox <rsc@golang.org>
src/encoding/xml/xml.go
src/encoding/xml/xml_test.go