mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-29 00:15:49 +08:00
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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user