<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><style><!--
.EmailQuote {
margin-left:1pt;
padding-left:4pt;
border-left:#800000 2px solid;
}
--></style><style><!--
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><div dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;" data-mce-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></blockquote><div>You can manually edit the visual studio project file to replace "utf-8" with "Windows-1252" (or whatever is appropriate for your language) and load the project in visual studio.</div><div><br></div><div>If that works, can you please modify cmVisualStudio10TargetGenerator.cxx to change from "utf-8" to "Windows-1252" to see if you can build the rest of your project.</div><div><span style="font-size: 12pt;">Let us know so we can include a fix.</span></div><div><br></div><div>Clint</div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;" data-mce-style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'; font-size: 12pt;"><div><br></div><div><br></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;" data-mce-style="padding-top: 5px; border-top-color: #e5e5e5; border-top-width: 1px; border-top-style: solid;"><div><span face=" 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'" data-mce-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;" 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="_blank" data-mce-href="mailto:clinton@elemtech.com">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="_blank" data-mce-href="mailto:cmake@cmake.org">cmake@cmake.org</a></span></div></div><div><br></div><div dir=""><div class="PlainText"><br><div><br></div> ----- 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><div><br></div> 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><div><br></div> 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><div><br></div> 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><div><br></div> Clint<br> --<br><div><br></div> Powered by <a href="http://www.kitware.com" target="_blank" data-mce-href="http://www.kitware.com">www.kitware.com</a><br><div><br></div> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank" data-mce-href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br><div><br></div> Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br><div><br></div> CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank" data-mce-href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a><br> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank" data-mce-href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a><br> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank" data-mce-href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a><br><div><br></div> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank" data-mce-href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><div><br></div> Follow this link to subscribe/unsubscribe:<br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank" data-mce-href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></div></div></div><br>--<br><div><br></div>Powered by www.kitware.com<br><div><br></div>Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br><div><br></div>Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br><div><br></div>CMake Support: http://cmake.org/cmake/help/support.html<br>CMake Consulting: http://cmake.org/cmake/help/consulting.html<br>CMake Training Courses: http://cmake.org/cmake/help/training.html<br><div><br></div>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br><div><br></div>Follow this link to subscribe/unsubscribe:<br>http://www.cmake.org/mailman/listinfo/cmake</blockquote><div><br></div></div></body></html>