shithub: choc

Download patch

ref: 154c1d54dd9d82569a7cca563bad4b94d13da5a6
parent: 666e8da5fdc204a0406139f660a6a674210f156c
author: Mike Swanson <mikeonthecomputer@gmail.com>
date: Sat Jan 6 04:31:51 EST 2018

pkg/win32: use --add-bom when processing files in unix2dos

Windows Notepad won’t display non-ASCII UTF-8 characters properly
without a byte-order-mark at the beginning of the file.

--- a/pkg/win32/GNUmakefile
+++ b/pkg/win32/GNUmakefile
@@ -16,7 +16,7 @@
 all: $(ZIPS)
 
 $(ZIPS):
-	unix2dos $</*.txt
+	unix2dos --add-bom $</*.txt
 	zip -j -r $@ $</*
 
 $(DOOM_ZIP): staging-doom hook-doom