MantisBT - CMake
View Issue Details
0011223CMakeCMakepublic2010-09-13 08:322015-04-06 09:07
ThomasZymara 
Clinton Stimpson 
normalminoralways
closedfixed 
CMake-2-8 
 
0011223: CMake has problems with german-umlauts in paths with Visual-Studio-2010
Is there f.e. an include-pfad with a german umlaut, the generated project-file for Visual Studio 2010 is corrupted, cause the german-umlaut is just some unreadable character.

Visual Studio 2010 is then unable to load the project-file.
System:
Windows XP SP3, Visual Studio 2010 Premium,
CMake 2.8.2 (installed by Windows binaries)
No tags attached.
png CorruptHeaderNameInProject.PNG (6,454) 2011-03-14 07:22
https://public.kitware.com/Bug/file/3749/CorruptHeaderNameInProject.PNG
png

png CorruptProjectPaths.PNG (8,295) 2011-03-14 07:22
https://public.kitware.com/Bug/file/3750/CorruptProjectPaths.PNG
png

zip CMakeBugTestProject.zip (53,278) 2011-03-14 07:23
https://public.kitware.com/Bug/file/3751/CMakeBugTestProject.zip
png CorrectPaths.PNG (2,001) 2011-03-14 07:24
https://public.kitware.com/Bug/file/3752/CorrectPaths.PNG
png
Issue History
2010-09-13 08:32ThomasZymaraNew Issue
2011-01-17 14:51David ColeAssigned To => David Cole
2011-01-17 14:51David ColeStatusnew => assigned
2011-01-17 14:52David ColeNote Added: 0024795
2011-03-14 06:54ThomasZymaraNote Added: 0025770
2011-03-14 07:22ThomasZymaraFile Added: CorruptHeaderNameInProject.PNG
2011-03-14 07:22ThomasZymaraFile Added: CorruptProjectPaths.PNG
2011-03-14 07:23ThomasZymaraFile Added: CMakeBugTestProject.zip
2011-03-14 07:24ThomasZymaraFile Added: CorrectPaths.PNG
2011-03-15 07:39ThomasZymaraNote Added: 0025782
2011-10-26 00:00David ColeAssigned ToDavid Cole =>
2011-10-26 00:00David ColeStatusassigned => backlog
2014-04-04 09:54Clinton StimpsonNote Added: 0035637
2014-11-10 23:42Clinton StimpsonAssigned To => Clinton Stimpson
2014-11-10 23:42Clinton StimpsonStatusbacklog => assigned
2014-11-10 23:42Clinton StimpsonNote Added: 0037170
2014-11-10 23:42Clinton StimpsonStatusassigned => resolved
2014-11-10 23:42Clinton StimpsonResolutionopen => fixed
2015-04-06 09:07Robert MaynardNote Added: 0038440
2015-04-06 09:07Robert MaynardStatusresolved => closed

Notes
(0024795)
David Cole   
2011-01-17 14:52   
Can you check to see if this is still a problem with the CMake 2.8.4-rc1 release? If so, can you copy/paste the exact path name that it has a problem with, and attached a generated *.sln / *.vcxproj file that is "corrupt"?

Thanks.
(0025770)
ThomasZymara   
2011-03-14 06:54   
Checked in v2.8.4 Release:

This is still a problem

Instead of the German Umlaut (äöü) in a path there is a crypted character, so compiling the solution is not possible
(0025782)
ThomasZymara   
2011-03-15 07:39   
Solution:

You must change XML-encoding from utf-8 to iso-8859-1, then this bug is fixed;

cmLocalVisualStudio10Generator.cxx (line: 55)
          XML_SetEncoding(static_cast<XML_Parser>(this->Parser), "utf-8")
          XML_SetEncoding(static_cast<XML_Parser>(this->Parser), "iso-8859-1");

cmVisualStudio10TargetGenerator.cxx (line: 170, 501)
         (...)
(0035637)
Clinton Stimpson   
2014-04-04 09:54   
Can you compile CMake yourself and turn on the switch
CMAKE_ENCODING_UTF8:BOOL=ON
to see if this problem is fixed?
(0037170)
Clinton Stimpson   
2014-11-10 23:42   
This was fixed in CMake 3.0.
(0038440)
Robert Maynard   
2015-04-06 09:07   
Closing resolved issues that have not been updated in more than 4 months.