mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix UnicodeEncodeError when converting INO to CPP
This commit is contained in:
@ -58,7 +58,7 @@ class InoToCPPConverter(object):
|
|||||||
assert nodes
|
assert nodes
|
||||||
lines = []
|
lines = []
|
||||||
for node in nodes:
|
for node in nodes:
|
||||||
contents = node.get_text_contents()
|
contents = util.get_file_contents(node.get_path())
|
||||||
_lines = [
|
_lines = [
|
||||||
'# 1 "%s"' % node.get_path().replace("\\", "/"), contents
|
'# 1 "%s"' % node.get_path().replace("\\", "/"), contents
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user