delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/04/09/01:54:54

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT 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 AT mail DOT gmail DOT com>
<20210406233716 DOT 003ba116ca61f99632bb4dce AT nifty DOT ne DOT jp>
<CA+7cx1o-Npm_ne8v+EB1QfCYPEZ4GB4dJSn3bQozEMm9pK4RgQ AT mail DOT gmail DOT com>
<20210407195624 DOT d77b7459cbdd63504ea495d4 AT nifty DOT ne DOT jp>
<20210407200441 DOT 860d8b421bf7d29d1e32a6ea AT nifty DOT ne DOT jp>
<CA+7cx1rN2pkwV0P=jLQWKcuAU5hcvAgzsCD5si-wn4uk+fDthg AT mail DOT gmail DOT com>
<20210408201600 DOT 9f70ffa0b828a785e70a891c AT nifty DOT ne DOT jp>
<20210408212559 DOT bfa088414864757d8c7dc19d AT nifty DOT ne DOT jp>
<CA+7cx1p-JtS4Awoh6qsjPwULcnd0R94+fy+tndVRQ6dnsHajow AT mail DOT gmail DOT com>
<20210408230404 DOT 5083209095d8a184dd0b4de7 AT nifty DOT ne DOT jp>
<CA+7cx1qzAQ8uAGVWBV8SjN=1sP9CRTEnXXr60+HBmmtMSS3zCw AT mail DOT gmail DOT com>
<CA+7cx1oUT6tDq+QP303Q7xa-2J_n-faCLtkxhF78Pb67-uvmPw AT mail DOT gmail DOT com>
<20210409092225 DOT 7117a11cb457dd94743b6965 AT nifty DOT ne DOT jp>
<CA+7cx1pCOrK8fjJGWsPmf3v=ZxOubp-2WmJuhxnaZ-n13O6kLw AT mail DOT gmail DOT 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 AT cygwin DOT 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 AT cygwin DOT 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 AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: =?utf-8?q?Morten_Kj=C3=A6rulff_via_Cygwin?= <cygwin AT cygwin DOT com>
Reply-To: =?UTF-8?Q?Morten_Kj=C3=A6rulff?= <mortenkjarulff AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019