justjavac:master → OpenHarmony:master
tools/snapshot/framework2char.py 文件中读取文件然后转成十六进制存在 bug。报错“TypeError: %x format: a number is required, not str”。
input_file.read 读到的是字符串,但是 '0x%02x' 中接受的是数字。这段代码的逻辑应该是把每个字符的 ascii 码转成十六进制。
input_file.read
'0x%02x'
3 comments, 2 participants
tools/snapshot/framework2char.py 文件中读取文件然后转成十六进制存在 bug。报错“TypeError: %x format: a number is required, not str”。
input_file.read
读到的是字符串,但是'0x%02x'
中接受的是数字。这段代码的逻辑应该是把每个字符的 ascii 码转成十六进制。