From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) by sourceware.org (Postfix) with ESMTPS id 0D8213861003 for ; Wed, 14 Oct 2020 22:14:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0D8213861003 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=froissart.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jerome.froissart@gmail.com Received: by mail-ed1-f41.google.com with SMTP id v19so1022562edx.9 for ; Wed, 14 Oct 2020 15:14:25 -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:cc:content-transfer-encoding; bh=dN7aXJZxDdFGpBUywS/sbgr+ddeaE6uxKYuX8Wth6L4=; b=s2Kdfx/QEqWO/7IqmoYcgS/KCoLN5CdgsPuZm/mTKOtbaDF+cqatENHW4gNsTYO/NS wN7zHFdBodAkp06rzFd7czf8W1DKdZF8Dvu5AEYW4pP7kCKMLtK7oLySOBqAmx/397OO 0Y+OeSUNc5+NT959ucDAlLe992Wk09/hNCU7ZkGwk2OO9kYGuLF+heTErr51dki3SrdU NL+nNakX+G/hn93FZF4dVafRY0GetcnUABPdomBOzutRDuiTUlhei4ll+OaudvKvFpj7 AcPbenuYwC982KCzYd8y0rEAVauvA0cyaRSshBBDXvsS4hbbYxdHu6ZSx6shAqE7zb7L N1jw== X-Gm-Message-State: AOAM533paJ/MxrkH4p7SZc4dMrqgZvnYp9AWIZhseHcgmnuJbgh2QkOb m8amn1aUr1MG32JNTJ0I/KZ/caHZqqYmXRRGbs4= X-Google-Smtp-Source: ABdhPJwTjPWYdaOfJOv558bcy9dztbaLCdWx6NCEVxqAIJmcIhjvJtvn075yYWWHGN3T8SLJgQrgFDxvYJlNwL2j2FI= X-Received: by 2002:a50:9a86:: with SMTP id p6mr1196084edb.96.1602713664080; Wed, 14 Oct 2020 15:14:24 -0700 (PDT) MIME-Version: 1.0 References: <634821436.20201004141809@yandex.ru> In-Reply-To: From: =?UTF-8?B?SsOpcsO0bWUgRnJvaXNzYXJ0?= Date: Thu, 15 Oct 2020 00:14:13 +0200 Message-ID: Subject: Re: Unconsistent command-line parsing in case of UTF-8 quoted arguments To: =?UTF-8?B?SsOpcsO0bWUgRnJvaXNzYXJ0?= Cc: "Kaz Kylheku (Cygwin)" <743-406-3965@kylheku.com>, cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: Wed, 14 Oct 2020 22:14:26 -0000 Le mer. 14 oct. 2020 =C3=A0 23:47, J=C3=A9r=C3=B4me Froissart a =C3=A9crit : > However, there is still a question that is puzzling me. I now > understand _why_ things happen that way, but I am still wondering > whether this is really what we _want_. I mean, keeping the double > quotes around an UTF-8 argument just because it is not run from > Cygwin's bash sounds like a bug for me, doesn't it? (yet I definitely > understand the reasons that explain this behaviour). Since I cannot > run my program from bash, I have to resort to manually trimming the > quotes, which I would have liked to avoid. Just to rephrase what is puzzling me: When I understood that sshfs-win had a bug when an argument contained diacritics, I expected many possible issues : mismatching codepages, poorly-handled encodings, implicit conversions between UTF-8 and Latin-1, etc., which would make some sense. But I definitely did not expect that "double quotes were not properly removed by the runtime", which (imho) does not make any sense. I hope I have managed to rephrase my problem clearly :D Thanks to all of you for your help!