Fix generateSingleHeader.py to properly copy utf-8

This commit is contained in:
Martin Hořeňovský 2018-08-29 12:36:43 +02:00
parent 5202993555
commit 898d111f72

View File

@ -46,7 +46,7 @@ def generate(v):
outDir = os.path.dirname(outputPath) outDir = os.path.dirname(outputPath)
if not os.path.exists(outDir): if not os.path.exists(outDir):
os.makedirs(outDir) os.makedirs(outDir)
out = io.open( outputPath, 'w', newline='\n') out = io.open( outputPath, 'w', newline='\n', encoding='utf-8')
def write( line ): def write( line ):
if globals['includeImpl'] or globals['implIfDefs'] == -1: if globals['includeImpl'] or globals['implIfDefs'] == -1: