delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/10/14/18:15:21

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: <CAFC9CLCtfMORMxAK6==jdwY5ZbX6jWwo+JCfDwM3njgvGduf0w AT mail DOT gmail DOT com>
<634821436 DOT 20201004141809 AT yandex DOT ru>
<CAFC9CLCHk0WMj935OzZF+HeAdDbv-kGU_SHyi47vohagM+ZmtQ AT mail DOT gmail DOT com>
<d4f283fe85c31be76dcfc01b20bb375e AT mail DOT kylheku DOT com>
<CAFC9CLCx3nAQu6aMYTTL1syr9zyXgHYY0vKCKSCXAf=HpYXDiQ AT mail DOT gmail DOT com>
In-Reply-To: <CAFC9CLCx3nAQu6aMYTTL1syr9zyXgHYY0vKCKSCXAf=HpYXDiQ@mail.gmail.com>
From: =?UTF-8?B?SsOpcsO0bWUgRnJvaXNzYXJ0?= <software AT froissart DOT eu>
Date: Thu, 15 Oct 2020 00:14:13 +0200
Message-ID: <CAFC9CLCJgPGge7pDksZTLRd0AsUjJDXAJqcLaUE=zgeh1Z7jcg@mail.gmail.com>
Subject: Re: Unconsistent command-line parsing in case of UTF-8 quoted
arguments
To: =?UTF-8?B?SsOpcsO0bWUgRnJvaXNzYXJ0?= <software AT froissart DOT eu>
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 <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: cygwin AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 09EMEtYu000874

Le mer. 14 oct. 2020 à 23:47, Jérôme Froissart <software AT froissart DOT eu> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019