X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A04B3987C39
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1617947691;
	bh=anO6AXjcOaPJR6VYgjE9KswX6+BDO/SRP5Me7HX7uNg=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=druGVtYCsa2Pg5j5QTOOXIRLzAxXW8wIihX3H+PHxSBpPoOjBJeQJgbuSOdHx6WV5
	 IcG+nwkAxi/T1Z4nm7E+WoPERzRotC84X5ITmAOlM6SzdjprIz1V6XgtwJoweUn5wm
	 rbAo6pkZCTBRosuXxGUsJhfCYmePEI1+/Rt8E6wA=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A850839730F8
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:content-transfer-encoding;
 bh=jTeB1Lru8KFMtKZ/fttdReSUUp+a/WAraRINVmdNGtI=;
 b=gJ9Bn0bGYCBjH5kihRJMJboH9tRniupGukGl2xAahvUk55PzSYI95rOzDqshBhyw4t
 F3bdA9ulnWwoKF9rcBrOFLVqrB/2pKbCGY9+GUT86Gu6DRmaJrklcS1ducoYLhelrOJP
 T9ARTuHPhrqC0cQGi6fzxwxAaBNo+mgqWyUdWydEjORJNG72NIIzP/IOy2DGsRVJcNnC
 hgwgwW6TdF88NLUQijffYvMd1h1IRtV7oiNPxK2RIlnCgah/6BvY7JEzcxevbpC5BB96
 pRgbpErMquwyAfqSWeSkF4gjq3AkK9xTsxXhmGe5k+J0WjGIXr0SXMCouX+8YZuOPbdJ
 eU1Q==
X-Gm-Message-State: AOAM533XZj1OHWzddq+znY4VuUcojk7IXoQXHzT64BETsLFcW89tZ+zs
 Kq49NXFovgwypGULjEu6kpvVUOnR/B9BI0rOfrtiXB5x
X-Google-Smtp-Source: ABdhPJx/inm+aIOdcpoce3ezu+HYj5xYXpcNbp9COgMQArYS9jEYfVXTqIjvvptIvL0ZBGBXtwrZgCHIMzn7Sus1w9w=
X-Received: by 2002:a17:907:3c08:: with SMTP id
 gh8mr825367ejc.439.1617947686537; 
 Thu, 08 Apr 2021 22:54:46 -0700 (PDT)
MIME-Version: 1.0
References: <CA+7cx1p2BNhah1wNB2gNPVDR6y6eXD44ALFaUhjcinJuVOFWRw@mail.gmail.com>
 <20210406233716.003ba116ca61f99632bb4dce@nifty.ne.jp>
 <CA+7cx1o-Npm_ne8v+EB1QfCYPEZ4GB4dJSn3bQozEMm9pK4RgQ@mail.gmail.com>
 <20210407195624.d77b7459cbdd63504ea495d4@nifty.ne.jp>
 <20210407200441.860d8b421bf7d29d1e32a6ea@nifty.ne.jp>
 <CA+7cx1rN2pkwV0P=jLQWKcuAU5hcvAgzsCD5si-wn4uk+fDthg@mail.gmail.com>
 <20210408201600.9f70ffa0b828a785e70a891c@nifty.ne.jp>
 <20210408212559.bfa088414864757d8c7dc19d@nifty.ne.jp>
 <CA+7cx1p-JtS4Awoh6qsjPwULcnd0R94+fy+tndVRQ6dnsHajow@mail.gmail.com>
 <20210408230404.5083209095d8a184dd0b4de7@nifty.ne.jp>
 <CA+7cx1qzAQ8uAGVWBV8SjN=1sP9CRTEnXXr60+HBmmtMSS3zCw@mail.gmail.com>
 <CA+7cx1oUT6tDq+QP303Q7xa-2J_n-faCLtkxhF78Pb67-uvmPw@mail.gmail.com>
 <20210409092225.7117a11cb457dd94743b6965@nifty.ne.jp>
 <CA+7cx1pCOrK8fjJGWsPmf3v=ZxOubp-2WmJuhxnaZ-n13O6kLw@mail.gmail.com>
In-Reply-To: <CA+7cx1pCOrK8fjJGWsPmf3v=ZxOubp-2WmJuhxnaZ-n13O6kLw@mail.gmail.com>
Date: Fri, 9 Apr 2021 07:54:35 +0200
Message-ID: <CA+7cx1pHjrb4q0qLKHakqdxOuygw+LP1QUf_9sawVA10paG-xQ@mail.gmail.com>
Subject: Re: IBM MQ client application fails on latest cygwin
To: cygwin@cygwin.com
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: =?utf-8?q?Morten_Kj=C3=A6rulff_via_Cygwin?= <cygwin@cygwin.com>
Reply-To: =?UTF-8?Q?Morten_Kj=C3=A6rulff?= <mortenkjarulff@gmail.com>
Content-Type: text/plain; charset="utf-8"
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 1395ssrs009887

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
--
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

