diff --git a/modules/codelite b/modules/codelite index a72d3266..287ffc60 160000 --- a/modules/codelite +++ b/modules/codelite @@ -1 +1 @@ -Subproject commit a72d326601add809cd5c5c2af7851cdc311767cc +Subproject commit 287ffc60d66ec36f9120061ddcc9ff44a6950c6f diff --git a/src/actions/vstudio/vs2005_csproj.lua b/src/actions/vstudio/vs2005_csproj.lua index b8e01232..a1262d4d 100644 --- a/src/actions/vstudio/vs2005_csproj.lua +++ b/src/actions/vstudio/vs2005_csproj.lua @@ -33,7 +33,7 @@ } function cs2005.generate(prj) - io.utf8() + p.utf8() premake.callarray(cs2005, cs2005.elements.project, prj) diff --git a/src/actions/vstudio/vs2010_vcxproj.lua b/src/actions/vstudio/vs2010_vcxproj.lua index f7191216..b5f97d30 100644 --- a/src/actions/vstudio/vs2010_vcxproj.lua +++ b/src/actions/vstudio/vs2010_vcxproj.lua @@ -48,7 +48,7 @@ end function m.generate(prj) - io.utf8() + p.utf8() p.callArray(m.elements.project, prj) p.out('') end diff --git a/src/base/io.lua b/src/base/io.lua index e7981e5a..cb7bd3b9 100644 --- a/src/base/io.lua +++ b/src/base/io.lua @@ -20,12 +20,3 @@ end return base(fname, mode) end) - - --- --- Output a UTF-8 signature. --- - - function io.utf8() - io.write('\239\187\191') - end diff --git a/src/base/premake.lua b/src/base/premake.lua index cca819df..5c9252f0 100644 --- a/src/base/premake.lua +++ b/src/base/premake.lua @@ -304,6 +304,18 @@ end +-- +-- Output a UTF-8 BOM to the exported file. +-- + + function premake.utf8() + if not _captured then + premake.out('\239\187\191') + end + end + + + --- -- Write a formatted string to the exported file, at the current -- level of indentation, and appends an end of line sequence.