]> Cypherpunks repositories - gostls13.git/commit
strconv: return ErrSyntax when unquoting illegal octal sequences. This
authorSameer Ajmani <sameer@golang.org>
Tue, 10 Jan 2012 00:55:18 +0000 (19:55 -0500)
committerSameer Ajmani <sameer@golang.org>
Tue, 10 Jan 2012 00:55:18 +0000 (19:55 -0500)
commitcbf4f4b8d03493c112b472b8fcf3d499dc4e6bc9
tree29f1fdb7d1ac3402b48822012f01b6468a27c760
parent1320ce00c44eef3b477f40a409f654ac145cfac5
strconv: return ErrSyntax when unquoting illegal octal sequences.  This
is consistent with what the Go compiler returns when such sequences
appear in string literals.

Fixes #2658.

R=golang-dev, rsc, r, r, nigeltao
CC=golang-dev
https://golang.org/cl/5530051
src/pkg/html/template/escape_test.go
src/pkg/strconv/quote.go
src/pkg/strconv/quote_test.go