summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-21 15:53:11 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-08-21 15:53:23 (GMT)
commit3402e6cf82c9ef1258530bff8cd4f2be01839d32 (patch)
tree48bbbefbdae5ed81e54096468913a4f587d9fc9c /Source/cmGlobalVisualStudioGenerator.cxx
parentbfe0ea2d98944e3668439b6fb2b05e82a5dca60e (diff)
parent3b51343ea1942171b0588f4f8367de3bd815e35d (diff)
downloadCMake-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.cxx3
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";