]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.5] fmt: in Scanf, %c can scan a space, so don't skip spaces at %c
authorRob Pike <r@golang.org>
Sun, 23 Aug 2015 07:45:58 +0000 (17:45 +1000)
committerChris Broadfoot <cbro@golang.org>
Tue, 8 Sep 2015 23:19:57 +0000 (23:19 +0000)
commit71387ff53f95ddd5f0bb91d7e4c92ccdc65238e7
tree9bd3d5a33bb9ddc8deb72097cec1680bcca24252
parent5e1648d5fe62246bed58218741256d7aee8b11b6
[release-branch.go1.5] fmt: in Scanf, %c can scan a space, so don't skip spaces at %c

In short, %c should just give you the next rune, period.
Apparently this is the design. I use the term loosely.

Fixes #12275

Change-Id: I6f30bed442c0e88eac2244d465c7d151b29cf393
Reviewed-on: https://go-review.googlesource.com/13821
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-on: https://go-review.googlesource.com/14395
src/fmt/scan.go
src/fmt/scan_test.go