From: Adam Langley Date: Tue, 31 May 2011 19:40:33 +0000 (-0400) Subject: encoding/hex: don't try to print DEL. X-Git-Tag: weekly.2011-06-02~45 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c72dbaf3124f5ce4d77aab723ebe5150d4c27ad2;p=gostls13.git encoding/hex: don't try to print DEL. R=agl CC=golang-dev https://golang.org/cl/4551081 --- diff --git a/src/pkg/encoding/hex/hex.go b/src/pkg/encoding/hex/hex.go index 227829ae5c..47cdedd607 100644 --- a/src/pkg/encoding/hex/hex.go +++ b/src/pkg/encoding/hex/hex.go @@ -128,7 +128,7 @@ type dumper struct { } func toChar(b byte) byte { - if b < 32 || b > 127 { + if b < 32 || b > 126 { return '.' } return b