Преглед изворни кода

VS: Do not generate a BOM in .sln files

Revert commit v3.2.0-rc1~165^2 (Encoding:  Write Visual Studio solution
file with BOM, 2014-12-26).  The BOM breaks the VS IDE version selector
when loading the .sln from Windows Explorer.
Brad King пре 10 година
родитељ
комит
987d4a1240

+ 0 - 5
Source/cmGlobalVisualStudio71Generator.cxx

@@ -93,11 +93,6 @@ void cmGlobalVisualStudio71Generator
                cmLocalGenerator* root,
                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
   this->WriteSLNHeader(fout);
 

+ 0 - 5
Source/cmGlobalVisualStudio7Generator.cxx

@@ -558,11 +558,6 @@ void cmGlobalVisualStudio7Generator
                cmLocalGenerator* root,
                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
   this->WriteSLNHeader(fout);