delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/03/22/09:35:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=uD0Hksd3IG01xpr8
W6JxcIimOrz6EPIrsoRzQwNk2ne5heezEHkIXxWUyiPjq37T49ewr9oRjwVvalfs
T8ABuZ9faa67zoj32c+SDlu7IYfbvenmmp7pDp/4jzN4AZqAYOKT/EhB5LXgx5tT
DjFDDN2JmYzYSyCid5XLK42lIBs=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=Zy3WLeoEou4dS3OrYryQuK
SrijY=; b=OuMTYd0j4UDQf3+1vgk2NNk9+wHJhkmrAFfcax69SKvOWBItFNHxRV
zgTTAAY1RGfmBWWy84Vc9EfiKT0QuwXBgMmtGigXgaluxECQfsb4hBQLD/jew+w1
N7f99/omYMYE6rR0m2mtP4kJKNBKPjvhDhyw2JLzhJnZSN6XCD/PI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=BAYES_05,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=H*RU:192.168.1.10, H*r:ip*192.168.1.10, H*M:yandex, Hx-spam-relays-external:192.168.1.10
X-HELO: forward102p.mail.yandex.net
Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Thu, 22 Mar 2018 16:25:01 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <162182215.20180322162501@yandex.ru>
To: Mikhail Usenko <cygwin AT inbox DOT ru>, cygwin AT cygwin DOT com
Subject: Re: Quotes around command-line argument that has unicode characters are not removed
In-Reply-To: <20180322152437.a37c3dd3b778bba765e2124c@inbox.ru>
References: <08d9621d-b9a0-c0d7-b58b-581ab957a08c AT mail DOT ru> <20180322152437 DOT a37c3dd3b778bba765e2124c AT inbox DOT ru>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Mikhail Usenko!

> In bare cmd.exe native-msvcrt binary is working OK with quoted non-ascii
> arguments, while cygwin-flavor binary is not. But I don't know exactly which
> level here: cmd.exe or msvcrt.dll/cygwin1.dll is responsible for
> such a behavior.

Locale settings affecting Cygwin binary.

If you
set LANG=ru_RU.CP866
(f.e.)
before invoking cygwin testcase in native CMD, you will likely see it
working better.
Alternatively, you could try
chcp 65001


-- 
With best regards,
Andrey Repin
Thursday, March 22, 2018 16:22:13

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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