From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103932 invoked by alias); 22 Mar 2018 13:35:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 103913 invoked by uid 89); 22 Mar 2018 13:35:22 -0000 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 Received: from forward102p.mail.yandex.net (HELO forward102p.mail.yandex.net) (77.88.28.102) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Mar 2018 13:35:12 +0000 Received: from mxback15j.mail.yandex.net (mxback15j.mail.yandex.net [IPv6:2a02:6b8:0:1619::91]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 511B9430380A; Thu, 22 Mar 2018 16:35:09 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback15j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id jOE5RdV88c-Z38CtruK; Thu, 22 Mar 2018 16:35:03 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Zxyljxa3nB-Z2BamNBu; Thu, 22 Mar 2018 16:35:02 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 22 Mar 2018 13:25:01 -0000 Date: Thu, 22 Mar 2018 15:35:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <162182215.20180322162501@yandex.ru> To: Mikhail Usenko , cygwin@cygwin.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@mail.ru> <20180322152437.a37c3dd3b778bba765e2124c@inbox.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00347.txt.bz2 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