Output UTF-8 BOM at start of .vcxproj files

This commit is contained in:
Jason Perkins 2012-12-23 17:41:49 -05:00
parent 06318ab5b6
commit 1cd3667118
2 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,7 @@
function vc2010.generate_ng(prj)
io.eol = "\r\n"
io.indent = " "
io.utf8()
vc2010.header_ng("Build")
vc2010.projectConfigurations(prj)

View File

@ -77,6 +77,15 @@
end
--
-- Output a UTF-8 signature.
--
function io.utf8()
io.write('\239\187\191')
end
--
-- Because I use io.printf() so often in the generators, create a terse shortcut
-- for it. This saves me typing, and also reduces the size of the executable.