foxygit / doom Log in
commit 154c1d54dd9d82569a7cca563bad4b94d13da5a6
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Sat Jan 6 09:31:51 2018 -0800
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Sat Jan 6 09:31:51 2018 -0800

    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.
---
 pkg/win32/GNUmakefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/win32/GNUmakefile b/pkg/win32/GNUmakefile
index 0d91d0c5..97b8a081 100644
--- a/pkg/win32/GNUmakefile
+++ b/pkg/win32/GNUmakefile
@@ -16,7 +16,7 @@ DLL_FILES=$(TOPLEVEL)/src/SDL.dll                      \
 all: $(ZIPS)

 $(ZIPS):
-	unix2dos $</*.txt
+	unix2dos --add-bom $</*.txt
 	zip -j -r $@ $</*

 $(DOOM_ZIP): staging-doom hook-doom