MantisBT - CMake
View Issue Details
0015418CMakeCMakepublic2015-02-25 09:382015-11-02 09:13
rhabarbersaft 
Brad King 
highmajoralways
closedfixed 
x86Windows 7
 
CMake 3.2CMake 3.2 
0015418: Wrong encoding for generated .sln
When generating Visual Studio 2008 projects using CMake 3.2.0-rc2, the generated solutions are UTF8-encoded.

This leads to Visual Studio not opening them anymore when double-clicking on the .sln file. Changing the encoding of the .sln file to ANSI resolves the problem.

The Visual Studio solutions should be generated using ANSI encoding to prevent this problem.
No tags attached.
has duplicate 0015440closed  "Visual Studio Version Selector" launches incorrect version when opening generated UTF-8 solution file. 
Issue History
2015-02-25 09:38rhabarbersaftNew Issue
2015-02-25 09:41Brad KingNote Added: 0038064
2015-02-25 09:41Brad KingAssigned To => Brad King
2015-02-25 09:41Brad KingStatusnew => resolved
2015-02-25 09:41Brad KingResolutionopen => fixed
2015-02-25 09:41Brad KingFixed in Version => CMake 3.2
2015-02-25 09:41Brad KingTarget Version => CMake 3.2
2015-02-25 10:13rhabarbersaftNote Added: 0038066
2015-02-25 10:16Brad KingNote Added: 0038067
2015-03-11 08:28Brad KingRelationship addedhas duplicate 0015440
2015-11-02 09:13Robert MaynardNote Added: 0039728
2015-11-02 09:13Robert MaynardStatusresolved => closed

Notes
(0038064)
Brad King   
2015-02-25 09:41   
The problem is not the encoding but the byte order mark. This has been fixed:

 VS: Do not generate a BOM in .sln files
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=987d4a12 [^]
(0038066)
rhabarbersaft   
2015-02-25 10:13   
Oh yes, removing the BOM only did the trick. Thanks a lot for the quick response!
(0038067)
Brad King   
2015-02-25 10:16   
Thanks for testing the release candidate so diligently!
(0039728)
Robert Maynard   
2015-11-02 09:13   
Closing resolved issues that have not been updated in more than 4 months.