<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><!--
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><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 changed the encoding as you suggested and the project compiled fine:</div><div><br></div><div>1>------ Build started: Project: cmTryCompileExec747919577, Configuration: Debug Win32 ------<br>1> Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86<br>1> Copyright (C) Microsoft Corporation. All rights reserved.<br>1> <br>1> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec747919577.dir\Debug\\" /Fd"cmTryCompileExec747919577.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:prompt testCCompiler.c<br>1> <br>1> testCCompiler.c<br>1> cmTryCompileExec747919577.vcxproj -> C:\Users\MátéFerenc\SkyDrive\Develop\Active\GridRipper\VS2013\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec747919577.exe<br>========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========<br></div><div><br></div><div>If you could issue a patch (2.8.12.2 if I’m not mistaken) that would correct this bug, that would simply rock.</div><div><br></div><div>Cheers,</div><div>Máté</div><div><br></div><div>ps.: Anyone has an idea what causes this issue with UTF-8? As far as I saw from the sources, the project files are concatenated from instances of std:: string. Wouldn’t std:: wstring solve the problem? Or using the ICU library perhaps? (I’m fine as long as the patch fixes my problems, the question is just out of curiosity)<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> szerda, 2013. november 13. 15:23<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 style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 12pt;"><div></div><hr id="zwchr"><blockquote style="color: rgb(0, 0, 0); padding-left: 5px; font-family: Helvetica,Arial,sans-serif; font-size: 12pt; font-style: normal; font-weight: normal; text-decoration: none; margin-top: 0px; margin-bottom: 0px; margin-left: 5px; border-left-color: rgb(16, 16, 255); border-left-width: 2px; border-left-style: solid;" 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 style='font-family: "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;' dir="ltr" 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="color: rgb(0, 0, 0); padding-left: 5px; font-family: Helvetica,Arial,sans-serif; font-size: 12pt; font-style: normal; font-weight: normal; text-decoration: none; margin-top: 0px; margin-bottom: 0px; margin-left: 5px; border-left-color: rgb(16, 16, 255); border-left-width: 2px; border-left-style: solid;" 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 style='font-family: "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;' dir="ltr" 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 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;' 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;"><b>Feladó:</b> <a href="mailto:clinton@elemtech.com" target="_parent" 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="_parent" 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="_parent" 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="_parent" 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="_parent" 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="_parent" 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="_parent" 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="_parent" 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="_parent" 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></div></div>
</body>
</html>