You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
And this one might appear to just be powershell related, but it seems to manifest itself with launching msys2 too (as well as other shells): microsoft/terminal#280
Your best best is to query the native codepage and save that to a variable, then only invoking 65001 just before launching mintty.exe. This might work:
for /f "tokens=3" %%G in ('reg query HKLM\SYSTEM\CurrentControlSet\Control\Nls\CodePage /v OEMCP')^
do set oemcp=%%G
chcp 65001 >NUL
start /I /WAIT %instdir%\%msys2%\usr\bin\mintty.exe -d -i /msys2.ico^
--log 2>&1 %build%\%log% /usr/bin/bash -lc "%command% %arg%"^
& chcp %oemcp% >NUL
The reason will be displayed to describe this comment to others. Learn more.
A more sane fix for this would be just disregarding the user and make it a fixed ab-suite user. Would allow us to sandbox our user settings and mess around a bit more with them.
6e4d4ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately there's a lot of bugs surrounding chcp 65001. https://dev.to/mattn/please-stop-hack-chcp-65001-27db
And this one might appear to just be powershell related, but it seems to manifest itself with launching msys2 too (as well as other shells): microsoft/terminal#280
Your best best is to query the native codepage and save that to a variable, then only invoking 65001 just before launching mintty.exe. This might work:
6e4d4ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more sane fix for this would be just disregarding the user and make it a fixed ab-suite user. Would allow us to sandbox our user settings and mess around a bit more with them.