]> Cypherpunks repositories - gostls13.git/commit
strconv: strip \r in raw strings passed to Unquote
authorQuentin Smith <quentin@golang.org>
Fri, 14 Oct 2016 19:13:30 +0000 (15:13 -0400)
committerQuentin Smith <quentin@golang.org>
Mon, 17 Oct 2016 18:34:02 +0000 (18:34 +0000)
commit7c46f0349844f950cc811727ded2393cff7e0369
tree410240ba65a01965b3ed3517ce4acb6c094365f0
parent6f4a6faf86238285fd02d2d04cbf3aeb51eb9d37
strconv: strip \r in raw strings passed to Unquote

To match the language spec, strconv.Unquote needs to strip carriage
returns from the raw string.

Also fixes TestUnquote to not be a noop.

Fixes #15997

Change-Id: I2456f50f2ad3830f37e545f4f6774ced9fe609d7
Reviewed-on: https://go-review.googlesource.com/31210
Reviewed-by: Robert Griesemer <gri@golang.org>
src/strconv/quote.go
src/strconv/quote_test.go