IBM MQ client application fails on latest cygwin

Morten Kjærulff mortenkjarulff@gmail.com
Fri Apr 9 05:54:35 GMT 2021


On Fri, Apr 9, 2021 at 7:26 AM Morten Kjærulff wrote:
>
> On Fri, Apr 9, 2021 at 2:22 AM Takashi Yano wrote:
> >
> > On Thu, 8 Apr 2021 18:30:25 +0200
> > Morten Kjærulff wrote:
> > > Could it be a codepage issue?
> >
> > Maybe.
> >
> > What does chcp.com say in command prompt and in mintty?
>
> 850
>
> > In cygwin 3.2.0, the codepage, when pseudo console is disabled,
> > has been changed from the default codepage of the system to
> > UTF-8 (65001). If pseudo console is disabled in your environment
> > for some reason, this can affect.
> >
> > Please try to change the codepage using chcp.com to the default
> > codepage of the system.
>
> Then it works:
>
> $ cmd
> Microsoft Windows [Version 10.0.17763.1817]
> (c) 2018 Microsoft Corporation. Alle rettigheder forbeholdes.
>
> C:\mhome>set MQSERVER=BROWSE/TCP/mvs1(1414)
> set MQSERVER=BROWSE/TCP/mvs1(1414)
>
> C:\mhome>chcp
> chcp
> Active code page: 65001
>
> C:\mhome>amqsbcgc Q
> amqsbcgc Q
>
> AMQSBCG0 - starts here
> **********************
>
>  MQCONNX failed with CompCode:2, Reason:2539
> C:\mhome>chcp 850
> chcp 850
> Active code page: 850
>
> C:\mhome>amqsbcgc Q
> amqsbcgc Q
>
> AMQSBCG0 - starts here
> **********************
>
>  MQOPEN - 'Q'
>  MQOPEN failed with CompCode:2, Reason:2085
>  MQDISC
> C:\mhome>
>
> > The default codepage of the system is used also when the
> > pseudo console is activated, so if possible, I recomend to
> > enable it somehow.
> >
> > The reason why pseudo console is disabled, can be one of:
> > - The system is older than Win10 1809.
> > - disable_pcon is set in environment variable CYGWIN.
> > - Terminal does not have enough capability to enable it. (e.g. TERM=dumb)
> > - The "Legacy console" mode is enabled.
> >   https://docs.microsoft.com/en-us/windows/console/legacymode
>
> For some reason I was running in legacy mode. Turning it off, make
> chcp display '0' under mintty, but my MQ client works:
>
> $ cmd
> Microsoft Windows [Version 10.0.17763.1817]
> (c) 2018 Microsoft Corporation. Alle rettigheder forbeholdes.
>
> C:\mhome>chcp
> Active code page: 0
>
> C:\mhome>set MQSERVER=BROWSE/TCP/mvs1(1414)
>
> C:\mhome>amqsbcgc Q
>
> AMQSBCG0 - starts here
> **********************
>
>  MQOPEN - 'Q'
>  MQOPEN failed with CompCode:2, Reason:2085
>  MQDISC
> C:\mhome>
>
> >
> > --
> > Takashi Yano

Sorry for replying personally and not to the group.

I have a virtual machine with Windows 7.
It is also a problem here, but here I don't have "legacy mode" in the
command prompt properties.
Any tricks?

/Morten


More information about the Cygwin mailing list