Fix export unicode comments

Current script make 1 character for each byte in comment line. So it`s cause double length and incorrect chars in international comments from IDA in Ghidra. This small patch fix it.
This commit is contained in:
Egor Kin 2020-05-25 13:38:59 +03:00 committed by GitHub
parent eaf6ab250d
commit d90a600b88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -632,7 +632,7 @@ class XmlExporter(IdaXml):
# tag_remove seems to be losing last character # tag_remove seems to be losing last character
# work around is to add a space # work around is to add a space
cmt_text = ida_lines.tag_remove(cmt + ' ') cmt_text = ida_lines.tag_remove(cmt + ' ')
self.write_text(cmt_text) self.write_text(cmt_text.decode('utf-8'))
self.end_element(COMMENT, False) self.end_element(COMMENT, False)