[cmake-developers] [CMake 0015440]: "Visual Studio Version Selector" launches incorrect version when opening generated UTF-8 solution file.

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 11 07:05:28 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15440 
====================================================================== 
Reported By:                Felix Bruns
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15440
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-03-11 07:05 EDT
Last Modified:              2015-03-11 07:05 EDT
====================================================================== 
Summary:                    "Visual Studio Version Selector" launches incorrect
version when opening generated UTF-8 solution file.
Description: 
Since solution (*.sln) files are encoded as UTF-8 (with signature), "Visual
Studio Version Selector" doesn't detect the file format version correctly.

Opening the file with an editor, then saving it as UTF-8 (without signature)
fixes the problem.

Steps to Reproduce: 
1. Install "Visual Studio 12 2013"
2. Install "Visual Studio 14 2015"
3. Install "CMake 3.2.0-rc2"
4. Generate a solution file using the "Visual Studio 12 2013" generator.
5. Double-click solution file in Explorer.

Actual:

6. "Visual Studio 14 2015" is launched.
7. Solution file icon shows no version number in Explorer.

Expected:

6. "Visual Studio 12 2013" is launched.
7. Solution file icon shows correct version number in Explorer.

Workaround:

1. Use Notepad2 to open/save solution file with encoding "UTF-8" (_not_ "UTF-8
with Signature")
2. Double-click solution file in Explorer.
3. "Visual Studio 12 2013" is launched.
4. Solution file icon shows correct version number in Explorer.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-03-11 07:05 Felix Bruns    New Issue                                    
======================================================================



More information about the cmake-developers mailing list