Commits

Jason Perkins  committed 4fa1487

Output UTF-8 BOM at start of .vcxproj files

  • Participants
  • Parent commits f1fc8cc

Comments (0)

Files changed (2)

File src/actions/vstudio/vs2010_vcxproj.lua

 	function vc2010.generate_ng(prj)
 		io.eol = "\r\n"
 		io.indent = "  "
+		io.utf8()
 
 		vc2010.header_ng("Build")
 		vc2010.projectConfigurations(prj)

File src/base/io.lua

 
 
 --
+-- 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.
 --