<p dir="auto">Use UTF-8 as source and executable encodings for C++ projects that<br>
contain UTF-8 source files.</p>
<p dir="auto">Tree <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/terminal/commit/35229a775d9e9908a8dfb102e01f49b494b29194/hovercard" href="https://github.com/microsoft/terminal/commit/35229a775d9e9908a8dfb102e01f49b494b29194"><tt>35229a7</tt></a> fails to build where the<br>
default code page is 936 (GBK), due to multiple files containing UTF-8<br>
encoded strings and/or comments, and these projects set to<br>
fail-on-warning mode. Additionally,<br>
src/host/ut_host/UnicodeLiteral.hpp contains a Windows-1252 encoded<br>
string. This commit adds the /utf-8 option to the affected projects,<br>
and converts src/host/ut_host/UnicodeLiteral.hpp to UTF-8.</p>
<p dir="auto">win10 1903<br>
vs2019 (but I have follow this : <a href="https://devblogs.microsoft.com/setup/configure-visual-studio-across-your-organization-with-vsconfig/" rel="nofollow">https://devblogs.microsoft.com/setup/configure-visual-studio-across-your-organization-with-vsconfig/</a>)<br>
result:<br>
_GenerateProjectPriFileCore:<br>
C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\MakePri.exe New -ProjectRoot C:\Users\a5566\terminal\src<br>
cascadia\TerminalConnection\ -ConfigXml x64\Debug\priconfig.xml -OutputFile C:\Users\a5566\terminal\x64\Debug\Termina<br>
lConnection\Microsoft.Terminal.TerminalConnection.pri -IndexName Microsoft.Terminal.TerminalConnection -Verbose -Over<br>
write<br>
TerminalConnection -&gt; Microsoft.Terminal.TerminalConnection.pri<br>
PostBuildEvent:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="      echo OutDir=C:\Users\a5566\terminal\x64\Debug\TerminalConnection\
      (xcopy /Y &quot;C:\Users\a5566\terminal\x64\Debug\TerminalConnection\TerminalConnection.dll&quot; &quot;C:\Users\a5566\termi"><pre class="notranslate"><code class="notranslate">      echo OutDir=C:\Users\a5566\terminal\x64\Debug\TerminalConnection\
      (xcopy /Y "C:\Users\a5566\terminal\x64\Debug\TerminalConnection\TerminalConnection.dll" "C:\Users\a5566\termi
</code></pre></div>
<p dir="auto">nal\x64\Debug\TerminalConnection.dll*" )<br>
(xcopy /Y "C:\Users\a5566\terminal\x64\Debug\TerminalConnection\TerminalConnection.pdb" "C:\Users\a5566\termi<br>
nal\x64\Debug\TerminalConnection.pdb*" )</p>
<p dir="auto">:VCEnd<br>
OutDir=C:\Users\a5566\terminal\x64\Debug\TerminalConnection<br>
C:\Users\a5566\terminal\x64\Debug\TerminalConnection\TerminalConnection.dll<br>
1 File(s) copied<br>
C:\Users\a5566\terminal\x64\Debug\TerminalConnection\TerminalConnection.pdb<br>
1 File(s) copied<br>
FinalizeBuildStatus:<br>
Deleting file "x64\Debug\Terminal.CA5CAD1A.tlog\unsuccessfulbuild".<br>
Touching "x64\Debug\Terminal.CA5CAD1A.tlog\TerminalConnection.lastbuildstate".<br>
Done Building Project "C:\Users\a5566\terminal\src\cascadia\TerminalConnection\TerminalConnection.vcxproj" (default tar<br>
gets).</p>
<p dir="auto">Done Building Project "C:\Users\a5566\terminal\src\cascadia\TerminalControl\TerminalControl.vcxproj.metaproj" (default<br>
targets) -- FAILED.</p>
<p dir="auto">Done Building Project "C:\Users\a5566\terminal\OpenConsole.sln" (default targets) -- FAILED.</p>
<p dir="auto">Build FAILED.</p>
<p dir="auto">"C:\Users\a5566\terminal\OpenConsole.sln" (default target) (1) -&gt;<br>
"C:\Users\a5566\terminal\src\host\exe\Host.EXE.vcxproj.metaproj" (default target) (2) -&gt;<br>
"C:\Users\a5566\terminal\src\host\exe\Host.EXE.vcxproj" (default target) (4) -&gt;<br>
"C:\Users\a5566\terminal\src\interactivity\win32\lib\win32.LIB.vcxproj" (default target) (6) -&gt;<br>
"C:\Users\a5566\terminal\src\renderer\base\lib\base.vcxproj" (default target) (9) -&gt;<br>
(ClCompile target) -&gt;<br>
C:\Users\a5566\terminal\src\renderer\base\thread.cpp(1): warning C4819: The file contains a character that cannot be<br>
represented in the current code page (950). Save the file in Unicode format to prevent data loss [C:\Users\a5566\termin<br>
al\src\renderer\base\lib\base.vcxproj]</p>
<p dir="auto">"C:\Users\a5566\terminal\OpenConsole.sln" (default target) (1) -&gt;<br>
"C:\Users\a5566\terminal\src\host\exe\Host.EXE.vcxproj.metaproj" (default target) (2) -&gt;<br>
"C:\Users\a5566\terminal\src\host\exe\Host.EXE.vcxproj" (default target) (4) -&gt;<br>
"C:\Users\a5566\terminal\src\interactivity\win32\lib\win32.LIB.vcxproj" (default target) (6) -&gt;<br>
"C:\Users\a5566\terminal\src\renderer\base\lib\base.vcxproj" (default target) (9) -&gt;<br>
(ClCompile target) -&gt;<br>
C:\Users\a5566\terminal\src\renderer\base\thread.cpp(1): error C2220: warning treated as error - no 'object' file gen<br>
erated [C:\Users\a5566\terminal\src\renderer\base\lib\base.vcxproj]</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1 Warning(s)
1 Error(s)"><pre class="notranslate"><code class="notranslate">1 Warning(s)
1 Error(s)
</code></pre></div>
<p dir="auto">Time Elapsed 00:04:07.43</p>