<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20279">
<style><!--
.EmailQuote {
margin-left:1pt;
padding-left:4pt;
border-left:#800000 2px solid;
}
--></style><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst,
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle,
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;">
<div>I have tried to open the solution by the IDE itself, but that fails to load the solution also. It report the same error while trying to load the projects inside.</div><div><br></div><div>Shall I rebuild CMake with the mentioned patch to make it work, or can I hope of a patch that solves this problem?</div><div><br></div><div data-signatureblock="true"></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face=" 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'" style='line-height: 15pt; letter-spacing: 0.02em; font-family: "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;'><b>Feladó:</b> <a href="mailto:clinton@elemtech.com" target="_parent">clinton@elemtech.com</a><br><b>Elküldve:</b> szombat, 2013. november 9. 7:14<br><b>Címzett:</b> <a href="mailto:cmake@cmake.org" target="_parent">cmake@cmake.org</a></font></div></div><div><br></div><div dir="">
<div class="PlainText"><br>
<br>
----- Original Message -----<br>
> On 11/8/2013 4:48 AM, Nagy-Egri Máté Ferenc wrote:<br>
> > Hi!<br>
> ><br>
> > I have the following issue, which I do not know whether it is an issue<br>
> > of CMake or Visual Studio. When I try to generate a Visual Studio<br>
> > project under a path that contains unicode characters, VS fails to<br>
> > compile the simple test file and thus CMake terminates project<br>
> > generation. Visual Studio does have some issues with projects under<br>
> > unicode paths, but generally things work. (For eg. the C++AMP call tree<br>
> > generator breaks, therefore no C++AMP project can be built in such<br>
> > paths) I develop all my applications in my Skydrive folder which is<br>
> > under the Users folder, and since my name holds unicode characters, I<br>
> > have no control over mw home folder under Win 8 if I have a Live-ID user<br>
> > in the OS. This is what happens:<br>
> Clearly you need to change your name. :)<br>
> <br>
> Can you create a simple project from the IDE in that directory and get<br>
> it to work?<br>
> <br>
> If you run CMake with --debug-trycompile, can you load the solution in<br>
> the CMakeTmp directory from the IDE?<br>
> <br>
<br>
This problem can also be reproduced with English as the current language.<br>
Just pick a character between 128 and 256 to include in the name of the build directory.<br>
For example, buildñ, and run cmake in there pointing to any source tree.<br>
<br>
For me, the Visual Studio 9 2008 generator works fine and the project file reports an encoding of Windows-1252.<br>
It fails with the the Visual Studio 10 generator where the project file reports a utf-8 encoding, but it really isn't utf-8.<br>
So I get errors like this:<br>
C:\...\cmake\buildñ\CMakeFiles\CMakeTmp\cmTryCompileExec926<br>
91608.vcxproj(56,110):<br>
error MSB4025: The project file could not be loaded. Invalid character in<br>
the given encoding. Line 56, position 110.<br>
<br>
Modifying cmVisualStudio10TargetGenerator.cxx to set the encoding of the visual studio file to Windows-1252 instead of utf-8 fixes the problem for me.<br>
<br>
Clint<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_parent">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_parent">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_parent">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_parent">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_parent">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_parent">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_parent">http://www.cmake.org/mailman/listinfo/cmake</a></div>
</div>
</div>
</body>
</html>