On Wed, 30 Dec 2020 14:03:58 +0900 Takashi Yano via Cygwin <cygwin@cygwin.com> wrote: > On Wed, 30 Dec 2020 07:49:07 +0300 > Andry wrote: > > Hello Cygwin, > > > > >I am not sure why you don't wat to use script, > > >how about this then? > > > > > >@echo off > > >set CYGWIN_ROOT=... > > >set PWD=... > > >set PROJECT_LOG_FILE=... > > > > > >"%CYGWIN_ROOT%\bin\script" -q -a "%PROJECT_LOG_FILE%" -c "chcp.com 65001 > > > /dev/null 2>&1; cd \"%PWD%\"; CHERE_INVOKING=1 /bin/bash --login" > > > > 1. chcp.com has no effect here > > Weird. In my environment, chcp surely changes the code page. > Are you using cygwin 3.2.0 snapshot by any chance? If so, add > set CYGWIN=disable_pcon > before starting script.
Sorry, I was wrong. As for Win7, chcp should work without disable_pcon even in cygwin 3.2.0, because pseudo console is not activated under Win7. -- Takashi Yano <takashi.y...@nifty.ne.jp> -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple