]> Cypherpunks repositories - gostls13.git/commit
unicode/utf8: reject out-of-range runes.
authorRob Pike <r@golang.org>
Thu, 19 Jul 2012 18:58:14 +0000 (11:58 -0700)
committerRob Pike <r@golang.org>
Thu, 19 Jul 2012 18:58:14 +0000 (11:58 -0700)
commitfc360f238137717e7246cc0fde908b71a3f1e5c7
treec712e35f63c31e4882598962a0885757d2a5cbf1
parent55ff3f7076e9ef45f8c853eece8acf36e891d885
unicode/utf8: reject out-of-range runes.
Surrogates are still admitted, but I have sent mail to golang-dev on that topic.

Fixes #3785.

R=golang-dev, rogpeppe, iant
CC=golang-dev
https://golang.org/cl/6398049
src/pkg/unicode/utf8/utf8.go
src/pkg/unicode/utf8/utf8_test.go