From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from powdermilk.math.berkeley.edu (powdermilk.math.berkeley.edu [169.229.140.13]) by sourceware.org (Postfix) with ESMTP id E553A3858CDA for ; Sat, 3 Dec 2022 03:40:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E553A3858CDA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ilyaz.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=math.berkeley.edu Received: by powdermilk.math.berkeley.edu (Postfix, from userid 5260) id B048A12019A; Fri, 2 Dec 2022 19:40:30 -0800 (PST) Date: Fri, 2 Dec 2022 19:40:30 -0800 From: Ilya Zakharevich To: cygwin@cygwin.com Subject: Re: [BUG core?] Regression =?utf-8?Q?with_?= =?utf-8?Q?parsing_Windows=E2=80=99?= command-line Message-ID: <20221203034030.a6ghnwcze4rkqeap@math.berkeley.edu> References: <20221116124824.zzobomcsmowvjtbr@math.berkeley.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221116124824.zzobomcsmowvjtbr@math.berkeley.edu> User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Nov 16, 2022 at 04:48:25AM -0800, I wrote: > De-quoting (converting the Windows’ command-line into argc/argv) does > not remove double quotes if characters not fit for 8-bit (?) are present. > > Broken in: CYGWIN_NT-6.1 Bu 3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 Cygwin > Works in: CYGWIN_NT-6.1-WOW Bu 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin > > To reproduce, do in CMD’s command line: > > D:\> D:\Programs\cygwin2022\bin\perl -wle "print for @ARGV" . "/i/" "/и/" . > . > /i/ > "/и/" > . I triple-checked • with a Win10 machine (and a version of cygwin given above), • with a fresh latest(=test)-cygwin-dll installation on a Win7 (as above) machine. Same bug everywhere. > Likewise for other characters which do not fit into 8-bits. (I have a > TrueType font enabled in a console.) > > (If you do not know how to type this, just copy-and paste it into a > console with CMD.) Ilya