New implementation of pseudo console support (experimental)

Johannes Schindelin Johannes.Schindelin@gmx.de
Mon Aug 31 14:22:20 GMT 2020


Hi Takashi,

On Mon, 31 Aug 2020, Takashi Yano wrote:

> On Mon, 31 Aug 2020 14:49:04 +0200 (CEST)
> Johannes Schindelin wrote:
>
> > On Thu, 20 Aug 2020, Takashi Yano via Cygwin-developers wrote:
> >
> > > On Wed, 19 Aug 2020 15:41:56 +0200
> > > Corinna Vinschen wrote:
> > > > Guys,
> > > >
> > > > On Aug 19 20:39, Takashi Yano via Cygwin-developers wrote:
> > > > > On Mon, 17 Aug 2020 20:57:18 +0900
> > > > > > Adapted to the current git head.
> > > > >
> > > > > Aligned the timing of seup_locale () call with the recent pty change.
> > > >
> > > > Shall we release 3.1.7 as bugfix release and then merge this patch
> > > > and bump to 3.2.0?
> > >
> > > It might be time to do so. Thanks.
> >
> > Sorry to latch onto this thread with something slightly different, but we
> > do see pretty serious encoding problems (both with and without
> > `CYGWIN=disable_pcon`) in the Git for Windows and the MSYS2 projects. For
> > example, in https://github.com/msys2/MSYS2-packages/issues/1974 the
> > following issue was reported. If you compile a _MINGW_ program from this
> > source code:
> >
> > -- snip --
> > #include <stdio.h>
> >
> > int main(){
> >   puts("Привет мир! Hello world!");
> >   return 0;
> > }
> > -- snap --
> >
> > and then execute it, you will see this output:
> >
> > -- snip --
> > Привет мир! Hello world!
> > -- snap --
>
> I guess your program (binary exe) does not work as you expect
> in command prompt as well. If you want to use UTF-8 coding in
> output, you should add SetConsoleOutputCP(CP_UTF8) call befere
> puts().

That may be, but I would like to point out that the very same executable
worked quite well in a MinTTY using v3.0.7... Meaning: the default
changed, and that broke a lot of users' expectations.

Is there really _no_ easy way to get the old behavior back?

Ciao,
Johannes

>
> > Piping the output through `cat.exe` "fixes" the issue. I tried both with
> > v3.1.7 and with the tip of the main branch. Could I ask you to have a look
> > at this?
> >
> > Ciao,
> > Johannes
>
>
> --
> Takashi Yano <takashi.yano@nifty.ne.jp>
>


More information about the Cygwin-developers mailing list