aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/golang.org/x/text/encoding/japanese/eucjp.go
diff options
context:
space:
mode:
Diffstat (limited to 'Godeps/_workspace/src/golang.org/x/text/encoding/japanese/eucjp.go')
-rw-r--r--Godeps/_workspace/src/golang.org/x/text/encoding/japanese/eucjp.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/Godeps/_workspace/src/golang.org/x/text/encoding/japanese/eucjp.go b/Godeps/_workspace/src/golang.org/x/text/encoding/japanese/eucjp.go
index c2d5f19ec..40f9b05f3 100644
--- a/Godeps/_workspace/src/golang.org/x/text/encoding/japanese/eucjp.go
+++ b/Godeps/_workspace/src/golang.org/x/text/encoding/japanese/eucjp.go
@@ -159,7 +159,8 @@ func (eucJPEncoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err
goto write2or3
}
}
- r = encoding.ASCIISub
+ err = internal.ErrASCIIReplacement
+ break
}
if nDst >= len(dst) {