Fix UnicodeEncodeError when converting INO to CPP

This commit is contained in:
Ivan Kravets
2019-04-18 16:20:01 +03:00
parent 3d96e584fb
commit 21a36f8ee9

View File

@ -58,7 +58,7 @@ class InoToCPPConverter(object):
assert nodes
lines = []
for node in nodes:
contents = node.get_text_contents()
contents = util.get_file_contents(node.get_path())
_lines = [
'# 1 "%s"' % node.get_path().replace("\\", "/"), contents
]