Only include BOM if it isn't already present.

This commit is contained in:
Sei Lisa 2019-01-17 12:55:49 +01:00
parent b5092c0be2
commit fba40123e1

View file

@ -707,6 +707,7 @@ def main(argv):
del script_header, script_timestamp
if bom:
if not script.startswith(b'\xEF\xBB\xBF'):
script = b'\xEF\xBB\xBF' + script
if outfile == '-':