summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2013-11-13 16:29:07 (GMT)
committerBrad King <brad.king@kitware.com>2013-11-14 16:24:06 (GMT)
commit58e3d4948de6308fa3c4a1b619792499cd3b9eba (patch)
tree900e45240e0f9d0c0e499da12a78dd365b526454 /Source/cmVisualStudio10TargetGenerator.cxx
parent558a6f1f920defdfcd7651fba3a85fded84d6a63 (diff)
downloadCMake-58e3d4948de6308fa3c4a1b619792499cd3b9eba.zip
CMake-58e3d4948de6308fa3c4a1b619792499cd3b9eba.tar.gz
CMake-58e3d4948de6308fa3c4a1b619792499cd3b9eba.tar.bz2
MSVC: Fix encoding of Visual Studio 10+ project files.
Use Windows-1252, which is the same encoding as older Visual Studio project files.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index ab97b5e..ace1eef 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -219,7 +219,8 @@ void cmVisualStudio10TargetGenerator::Generate()
//get the tools version to use
const std::string toolsVer(this->GlobalGenerator->GetToolsVersion());
- std::string project_defaults="<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
+ std::string project_defaults=
+ "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n";
project_defaults.append("<Project DefaultTargets=\"Build\" ToolsVersion=\"");
project_defaults.append(toolsVer +"\" ");
project_defaults.append(
@@ -724,7 +725,8 @@ void cmVisualStudio10TargetGenerator::WriteGroups()
//get the tools version to use
const std::string toolsVer(this->GlobalGenerator->GetToolsVersion());
- std::string project_defaults="<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
+ std::string project_defaults=
+ "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n";
project_defaults.append("<Project ToolsVersion=\"");
project_defaults.append(toolsVer +"\" ");
project_defaults.append(