diff options
Diffstat (limited to 'Godeps/_workspace/src/golang.org/x/text/encoding/simplifiedchinese/gbk.go')
-rw-r--r-- | Godeps/_workspace/src/golang.org/x/text/encoding/simplifiedchinese/gbk.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Godeps/_workspace/src/golang.org/x/text/encoding/simplifiedchinese/gbk.go b/Godeps/_workspace/src/golang.org/x/text/encoding/simplifiedchinese/gbk.go index bff57144a..e0b15bbcc 100644 --- a/Godeps/_workspace/src/golang.org/x/text/encoding/simplifiedchinese/gbk.go +++ b/Godeps/_workspace/src/golang.org/x/text/encoding/simplifiedchinese/gbk.go @@ -232,7 +232,8 @@ func (e gbkEncoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err goto write4 } } - r = encoding.ASCIISub + err = internal.ErrASCIIReplacement + break } write1: |