From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by sourceware.org (Postfix) with ESMTPS id 7E7B83941C07 for ; Sat, 3 Oct 2020 02:22:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7E7B83941C07 Received: by mail-il1-x12a.google.com with SMTP id q1so2973425ilt.6 for ; Fri, 02 Oct 2020 19:22:16 -0700 (PDT) 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=ssbFrq4BHjpFOYv5OEn8sQTVBLqwa4fde1/iBHhZHzY=; b=Z7CtprnF7/xbWcb6Cq4rdBRMVJL9GtsaibuBrKsioqbEEB/BFHhHCoQ/qLRRoZjHOC kbbINnP+wW10n/wk7cjudcvltW5HdrGs/sfx/CLlqk+l68k3mbPp0DMGtjyzmtJZFnkO xHy83xLcOPBW10MZXvZIpGJsTxWZ7/NbvTze3JOb9UfuoUOj/OYxENuo1MZ52WNcvSgi 5e/aErMEsurjqr8Q7mvd0Uc7EPp/MTwtV1tOFtfxtXinhjgQmbCEFvAF8rnEOfl0ndWu 0NL/zZDdJrMGyY32vW9F01gf+vH837+SDOFygW1TV1gsRGHjVpA9p8NG8Y6R3sSWoM5t ElLQ== X-Gm-Message-State: AOAM533lKbViC8nHCsrITer8hTKsMXzEn9DXgWTZ1fw1RYfsh/17gAKs jW14XUsalLsMgF8w8cSCuyvn6YO22TcWxNjzrGTALQzP X-Google-Smtp-Source: ABdhPJyjkYmSX00UXUTEcdL+y4QPADw5TC2GtFtiBPNSjMJ8sZGDYBnoWa1z0hs1KBROayEva4EGRrXEWj6wDOKp9m8= X-Received: by 2002:a92:8404:: with SMTP id l4mr1416739ild.134.1601691735677; Fri, 02 Oct 2020 19:22:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Doug Henderson Date: Fri, 2 Oct 2020 20:22:04 -0600 Message-ID: Subject: Re: Unconsistent command-line parsing in case of UTF-8 quoted arguments To: cygwin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Oct 2020 02:22:17 -0000 On Fri, 2 Oct 2020 at 15:41, J=C3=A9r=C3=B4me Froissart <> wrote: > > By discussing a merge request on another project [1], I think > billziss-gh found a weirdness in the way Cygwin parses the command > line arguments when non-ASCII characters come into play. > > EXPECTED BEHAVIOUR: > cygwin should parse the following command line > binary.exe --non-ascii "chara=C3=A7t=C3=A9rs" --ascii "nothing-fancy-= here" Please show us the output from "uname -a" and "locale" run from the bash pr= ompt. Tell is more about "binary.exe". Is it compiled for cygwon with gcc, for windows with mingw64 or windows with a native tool chain. Also are you running it from a bash prompt or a cmd.exe prompt? --=20 Doug Henderson, Calgary, Alberta, Canada - from gmail.com