<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt;ver
Microsoft Windows [Version 10.0.18362.175]

C:\&gt;where wt.exe
C:\Users\Roy\AppData\Local\Microsoft\WindowsApps\wt.exe

C:\&gt;echo %LocalAppData%
LOCALAPPDATA=C:\Users\Roy\AppData\Local"><pre lang="none" class="notranslate"><code class="notranslate">C:\&gt;ver
Microsoft Windows [Version 10.0.18362.175]

C:\&gt;where wt.exe
C:\Users\Roy\AppData\Local\Microsoft\WindowsApps\wt.exe

C:\&gt;echo %LocalAppData%
LOCALAPPDATA=C:\Users\Roy\AppData\Local
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Setting "CodePage" within the registry doesn't result in the correct code page within the <code class="notranslate">wt</code> terminal window.</p>
<p dir="auto">Neither this ...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt;C:\Windows\System32\reg.exe add HKCU\Console\%LocalAppData^%_Microsoft_WindowsApps_wt.exe /v CodePage /t REG_DWORD /d 65001 /f
The operation completed successfully."><pre lang="none" class="notranslate"><code class="notranslate">C:\&gt;C:\Windows\System32\reg.exe add HKCU\Console\%LocalAppData^%_Microsoft_WindowsApps_wt.exe /v CodePage /t REG_DWORD /d 65001 /f
The operation completed successfully.
</code></pre></div>
<p dir="auto">nor this ...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt;C:\Windows\System32\reg.exe add HKCU\Console\C:_Users_Roy_AppData_Local_Microsoft_WindowsApps_wt.exe /v CodePage /t REG_DWORD /d 65001 /f
The operation completed successfully."><pre lang="none" class="notranslate"><code class="notranslate">C:\&gt;C:\Windows\System32\reg.exe add HKCU\Console\C:_Users_Roy_AppData_Local_Microsoft_WindowsApps_wt.exe /v CodePage /t REG_DWORD /d 65001 /f
The operation completed successfully.
</code></pre></div>
<p dir="auto">result in the correct codepage within the <code class="notranslate">wt</code> terminal window..</p>
<h1 dir="auto">Expected behavior</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:&gt;chcp
Active code page: 65001"><pre lang="none" class="notranslate"><code class="notranslate">C:&gt;chcp
Active code page: 65001
</code></pre></div>
<h1 dir="auto">Actual behavior</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt;chcp
Active code page: 437"><pre lang="none" class="notranslate"><code class="notranslate">C:\&gt;chcp
Active code page: 437
</code></pre></div>
<h1 dir="auto">Environment</h1>
<p dir="auto">Platform ServicePack Version      VersionString</p>
<hr>
<p dir="auto">Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0</p>
<p dir="auto">Windows Terminal<br>
0.4.2382.0</p>
<p dir="auto">Powershell version<br>
$PSVersionTable.PSVersion                                                                                                                                                                                                   Major  Minor  Build  Revision</p>
<hr>
<p dir="auto">5      1      18362  145</p>
<p dir="auto">Any other software?<br>
no</p>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Type a poorly formed Export-Certificate powershell command such as<br>
Export-Certificate -Type CERT -FilePath "cert:\LocalMachine\my\blah" -Force</li>
<li>Don't supply any details and hit enter when prompted for<br>
"Supply values for the following Parameters  CERT:</li>
<li>Get a great long exception stack trace that you can't read before windows closes as it crashes to desktop ending the WindowsTerminal process.</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Get a stack trace, and the terminal doesn't actually close and crash back to desktop.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Closes window and Crashes back to desktop after printing out stack trace.</p>