diff options
author | Brad King <brad.king@kitware.com> | 2019-08-21 15:53:11 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-21 15:53:23 (GMT) |
commit | 3402e6cf82c9ef1258530bff8cd4f2be01839d32 (patch) | |
tree | 48bbbefbdae5ed81e54096468913a4f587d9fc9c /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | bfe0ea2d98944e3668439b6fb2b05e82a5dca60e (diff) | |
parent | 3b51343ea1942171b0588f4f8367de3bd815e35d (diff) | |
download | CMake-3402e6cf82c9ef1258530bff8cd4f2be01839d32.zip CMake-3402e6cf82c9ef1258530bff8cd4f2be01839d32.tar.gz CMake-3402e6cf82c9ef1258530bff8cd4f2be01839d32.tar.bz2 |
Merge topic 'vs-sln-bom'
3b51343ea1 VS: Emit UTF-8 BOM for generated solution files
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3705
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index 5c057c6..18cf922 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -104,6 +104,9 @@ const char* cmGlobalVisualStudioGenerator::GetIDEVersion() const void cmGlobalVisualStudioGenerator::WriteSLNHeader(std::ostream& fout) { + char utf8bom[] = { char(0xEF), char(0xBB), char(0xBF) }; + fout.write(utf8bom, 3); + switch (this->Version) { case cmGlobalVisualStudioGenerator::VS9: fout << "Microsoft Visual Studio Solution File, Format Version 10.00\n"; |