X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com 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 DOT froissart AT gmail DOT com 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 DOT 20201004141809 AT yandex DOT 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?= 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 AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cygwin AT cygwin DOT com Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 09EMEtYu000874 Le mer. 14 oct. 2020 à 23:47, Jérôme Froissart a écrit : > 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! -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple