Skip to content

Instantly share code, notes, and snippets.

@kyokuheki
Created February 7, 2018 01:14
Show Gist options
  • Save kyokuheki/ab5fab862a5d45a15dfb5c9aa30d1f2e to your computer and use it in GitHub Desktop.
Save kyokuheki/ab5fab862a5d45a15dfb5c9aa30d1f2e to your computer and use it in GitHub Desktop.
Windows上で実行ファイルをminttyから開き,エンコードを指定する

Windows上で実行ファイルをminttyから開き,エンコードを指定する

CP932

C:\cygwin64\bin\mintty.exe -o Locale=ja_JP -o Charset=CP932 /cygdrive/c/Windows/System32/cmd.exe

UTF-8

C:\cygwin64\bin\mintty.exe -o Locale=ja_JP -o Charset=UTF-8 /cygdrive/c/Windows/System32/cmd.exe

D&Dでスクリプトにファイルを渡す($1として見える)

C:\cygwin64\bin\mintty.exe -o Locale=ja_JP -o Charset=UTF-8 -e bash - script.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment