Skip to content

Commit

Permalink
add encoding utf-8 to all write methods
Browse files Browse the repository at this point in the history
  • Loading branch information
clearbluejar committed Apr 30, 2024
1 parent ae4d395 commit e78e28b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ghidriff/ghidra_diff_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,11 +1736,11 @@ def _clean_func(func, max=30) -> str:

# give line ending md despite html so it will render in gists and vscode
sxs_diff_path = sxs_output_path / Path('.'.join([name, _clean_func(func_name), 'md']))
sxs_diff_path.write_text(sxs_diff_html)
sxs_diff_path.write_text(sxs_diff_html, encoding='utf-8')

combined_sxs_diff_html = GhidriffMarkdown.gen_combined_sxs_html_from_pdiff(pdiff)
combined_sxs_diff_path = sxs_output_path / Path('.'.join([name, 'combined', 'html']))
combined_sxs_diff_path.write_text(combined_sxs_diff_html)
combined_sxs_diff_path.write_text(combined_sxs_diff_html, encoding='utf-8')

if write_diff:
self.logger.info(f'Wrote {md_path}')
Expand Down

0 comments on commit e78e28b

Please sign in to comment.