diff options
author | Ben Smith <binji@chromium.org> | 2019-06-07 09:53:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-07 09:53:41 -0700 |
commit | d1bb5f81541e670b8d088f158d08c99a6a973281 (patch) | |
tree | 25a9969924b29918970616cd80aa02dbf0101d8e /test/run-spec-wasm2c.py | |
parent | 986f5cc8bb85ba4ecc0dd3ed82fa39565ce9c419 (diff) | |
download | wabt-d1bb5f81541e670b8d088f158d08c99a6a973281.tar.gz wabt-d1bb5f81541e670b8d088f158d08c99a6a973281.tar.bz2 wabt-d1bb5f81541e670b8d088f158d08c99a6a973281.zip |
Rely on UTF-8 encoding in JSON strings (#1088)
Fixes issue #1086.
Diffstat (limited to 'test/run-spec-wasm2c.py')
-rwxr-xr-x | test/run-spec-wasm2c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run-spec-wasm2c.py b/test/run-spec-wasm2c.py index 741722f9..c941d57e 100755 --- a/test/run-spec-wasm2c.py +++ b/test/run-spec-wasm2c.py @@ -95,7 +95,7 @@ def MangleTypes(types): def MangleName(s): result = 'Z_' - for c in s: + for c in s.encode('utf-8'): # NOTE(binji): Z is not allowed. if c in '_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY0123456789': result += c |