aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-12 17:18:17 +0800
committerobscuren <geffobscura@gmail.com>2015-06-12 17:18:17 +0800
commit02d629af8f63ca310c9419beba6d915592c43b25 (patch)
treec09bc2c8f58b024850981e03a134493677761ed5 /core/vm
parente2c2d8e15ebef85c77f7486f92c6430ca6f30785 (diff)
downloadgo-tangerine-02d629af8f63ca310c9419beba6d915592c43b25.tar
go-tangerine-02d629af8f63ca310c9419beba6d915592c43b25.tar.gz
go-tangerine-02d629af8f63ca310c9419beba6d915592c43b25.tar.bz2
go-tangerine-02d629af8f63ca310c9419beba6d915592c43b25.tar.lz
go-tangerine-02d629af8f63ca310c9419beba6d915592c43b25.tar.xz
go-tangerine-02d629af8f63ca310c9419beba6d915592c43b25.tar.zst
go-tangerine-02d629af8f63ca310c9419beba6d915592c43b25.zip
core/vm: fixed printable characters using unicode instead
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/logger.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/logger.go b/core/vm/logger.go
index 96d07dab5..061e3745b 100644
--- a/core/vm/logger.go
+++ b/core/vm/logger.go
@@ -3,7 +3,7 @@ package vm
import (
"fmt"
"os"
- "unicode/utf8"
+ "unicode"
"github.com/ethereum/go-ethereum/common"
)
@@ -27,7 +27,7 @@ func StdErrFormat(logs []StructLog) {
for _, r := range data {
if r == 0 {
str += "."
- } else if utf8.ValidRune(rune(r)) {
+ } else if unicode.IsPrint(rune(r)) {
str += fmt.Sprintf("%s", string(r))
} else {
str += "?"