diff options
| author | Thorben Krueger <thorben.krueger@gmail.com> | 2015-10-14 19:18:59 +0000 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2015-10-20 01:08:54 +0000 |
| commit | 26fe24cbe2ce13fba899e46055132226cf88c6d9 (patch) | |
| tree | bb14b3ae69c885b1fae827f6a0fdeef29626177c /src/syscall/exec_linux.go | |
| parent | 0bf515c8c4e4ce7ffdbcdb4c0701a3de1892af6c (diff) | |
| download | go-26fe24cbe2ce13fba899e46055132226cf88c6d9.tar.xz | |
fmt: Add support for capital '%X' format verb for scanning
For printing, the format verb '%X' results in a capitalized
hex-representation of the formatted value. Conversely, using
'%X' in a Scanf function should scan a hex-representation
into the given interface{}. The existing implementation
however only supports '%X' for scanning hex values into
integers; strings or byte slices remain empty. On the other
hand, lower-case '%x' supports strings and byte slices just
fine. This is merely an oversight, which this commit fixes.
(Additional tests also included.)
Fixes #12940
Change-Id: I178a7f615bae950dfc014ca8c0a038448cf0452a
Reviewed-on: https://go-review.googlesource.com/15689
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/syscall/exec_linux.go')
0 files changed, 0 insertions, 0 deletions
