Merge branch 'sln-no-bom' into release
This commit is contained in:
commit
cd935b03bf
@ -93,11 +93,6 @@ void cmGlobalVisualStudio71Generator
|
|||||||
cmLocalGenerator* root,
|
cmLocalGenerator* root,
|
||||||
std::vector<cmLocalGenerator*>& generators)
|
std::vector<cmLocalGenerator*>& generators)
|
||||||
{
|
{
|
||||||
#ifdef CMAKE_ENCODING_UTF8
|
|
||||||
// Add UTF-8 BOM for .sln file to indicate encoding
|
|
||||||
const unsigned char utf8_bom[3] = {0xEF,0xBB,0xBF};
|
|
||||||
fout.write(reinterpret_cast<const char*>(utf8_bom), 3);
|
|
||||||
#endif
|
|
||||||
// Write out the header for a SLN file
|
// Write out the header for a SLN file
|
||||||
this->WriteSLNHeader(fout);
|
this->WriteSLNHeader(fout);
|
||||||
|
|
||||||
|
@ -558,11 +558,6 @@ void cmGlobalVisualStudio7Generator
|
|||||||
cmLocalGenerator* root,
|
cmLocalGenerator* root,
|
||||||
std::vector<cmLocalGenerator*>& generators)
|
std::vector<cmLocalGenerator*>& generators)
|
||||||
{
|
{
|
||||||
#ifdef CMAKE_ENCODING_UTF8
|
|
||||||
// Add UTF-8 BOM for .sln file to indicate encoding
|
|
||||||
const unsigned char utf8_bom[3] = {0xEF,0xBB,0xBF};
|
|
||||||
fout.write(reinterpret_cast<const char*>(utf8_bom), 3);
|
|
||||||
#endif
|
|
||||||
// Write out the header for a SLN file
|
// Write out the header for a SLN file
|
||||||
this->WriteSLNHeader(fout);
|
this->WriteSLNHeader(fout);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user