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
@@ -632,7 +632,7 @@ class XmlExporter(IdaXml):
# tag_remove seems to be losing last character
# work around is to add a space
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)