delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/10/06/08:39:25

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=u8YwzbzXTrmVQq+uCV4wdlFJKiFYb
QQdwkdXovwyCt08HXVgxyyYda5v5ggV6AronlR3gowskSUDETt7vU0eAH/lut8zO
fVL/IxVCrH4GK0Q41ifpMmTfESPoz0Yyt+tRkBl8I36OTudlekr8QKRlrrluvuaC
176QnohO1SE5N0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=rqokH5lakrFtVS+NVH37S+3Gdgo=; b=vWP
fXHPGe8kc0i1qc69Sj5klVIUtp9XxattZoTav47PaKBlrH5wzkpnqXM56tRGZ/K+
s9DJiQ6ReaC24jlhHOaeWcXZFihnbTq9/BlYO2q61myYgPqrtO60y/sphZfwfaxb
hjCW43p3LOE2ZePibBOHVIoqMZ7xdgpy3dz+axCk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=
X-HELO: mail-io0-f176.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=N/ryHu7S76Yhz1M71s8ZXFkBrBtt6n8ns2P1K9D7/UI=; b=YYVLWxqGRsVsimyRxyYr+1hm3VCVERHxWiidHLaDY3FUoWSSei24c7kl6N1fg8gKuc my5hKLm7txWLZ0q4TCLHo0+GppwmqhNUZAiMaXWNdCcGoTgTJVbkfoARlvzCRQntZZm5 BqtxNXLcQC0ogjAEwcv7dUPpYNlA7AHDdIE0U1SbekAFkTnq6Y6sVRD1KvMuVhCQV3RR dRJgRiaFdAlihQGK0HN8adD7gbNL7bR9MXr+GCrDb62HULZ0LIuvGgebwNT2TjjgGPLU WApssDexhxOLZ6t9Jth5zzuk/0lFI8N8vYKy9u3jjrARr7+D9y8GblljUcLXfiKXez2s XgCA==
X-Gm-Message-State: AA6/9RkO4x0i7oVsYmmAPfN11KjMde8zKq+esLy2iTlx5+yECCnM9EdaEFxTE6ykG9Q9gDcAv91vmip14+nrog==
X-Received: by 10.107.17.229 with SMTP id 98mr14181745ior.96.1475757542185; Thu, 06 Oct 2016 05:39:02 -0700 (PDT)
MIME-Version: 1.0
From: Andre Maroneze <maroneze AT gmail DOT com>
Date: Thu, 6 Oct 2016 14:38:41 +0200
Message-ID: <CAFKkpzpSu7bOCKf3uAwHrEiHcs5M9RCzVV4o2V=Lpo7PrgnGJg@mail.gmail.com>
Subject: cygpath 2.6.0: -m " C:" and garbled output
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

I just noticed a difference in behavior between versions 2.5.2 and
2.6.0 of cygpath (the ones I could test): if I run

cygpath -m " C:"

(notice the space before the C, inside the double quotes)

In cygpath 2.6.0, this outputs C? (C followed by the unicode character
0xF03A, which is a ":" (0x3A) character, but prefixed with "F0").
In cygpath 2.5.2 (and 2.4.1, which I also could test), it outputs C:,
as I would expect.

This happens on both Windows 7 and Windows 8.1, and not only on my
machine, so it seems fairly deterministic.

Is it some sort of undefined behavior to give an argument to cygpath
starting with a space inside double quotes?

Otherwise, is this an intended change to 2.6.0?

Regards,
Andre

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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