X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 650713858403
Authentication-Results: sourceware.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=y2ma/faFNSAirg9MKEO3ZdGTBzXG/XZT6ypnTNrciLk=;
 b=OB/bJMFuygqJLEuuo7DMp0o30oWsfg0ptA/9doKjRHr50u/tZIb1FoDG+31mO3+B4O
 3LijMEMHZsT8KzBj7dtZTgLlqGQWCAbjF5Y50Hvl2wxGtlOWFMSnz7+YfM2Ix+GGRJL+
 JZzOHqoF9C4SeDqfmqny9Fj7BhwM3RTqoQoENHZWP1DzO3UMm3b0WpLL4LflREXT8Ulq
 c8T9K6cHDL1wTDcIWHHeV+TPlIvZ42EtpaTsPmhcA4zlXQtcqFgA5jr7+uh2r1P8NHr/
 mx8eWg2e3LSQewvr1r88PBISR30ii980MASKN+dDOg3v5YNVGc7y8Bh3QAWYXf2Thbsm
 5zgg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=y2ma/faFNSAirg9MKEO3ZdGTBzXG/XZT6ypnTNrciLk=;
 b=1QLPA6eTJTibSzVh269AD7oZFu48dcNyIpqlQdsW0nSPfO/pIVf2ICh4CW2RlP9vTD
 vF5qeR4S/BnfyS3qhcW7n+B7JEQO9gxKs85jN52z+F8nUzBxHNzyCx6KpNzNosN9pumE
 BIF4HQctkcXOCNZfR0bansdJogo1e3YlIQVWcvkHPO7sawanzyuR4P9C5MyP1TVwNXhs
 0MAChdfn1cVPOvc40fODTwyXFtcYRXsejw2yNs4DmzxkkGnZvOWUoZ5o3ucIelXZShMf
 3ZmIVhXv3n29MgZwrkhq4zzlvNc436FDQ5xBL+HMs8MG03q7azq9F6BJg8cu+EcLZhLF
 IPKQ==
X-Gm-Message-State: AOAM531y0V9xmpf+JPFzOcZ5s3zWYJO1drXF0eo+llVdu2rQSc+xyy55
 vjJaTCV56G+v7wID8PcO8cvc9RpDp5acoWr9D90pHnF5
X-Google-Smtp-Source: ABdhPJzWmKXM54nXf/DymV2yUJK9FxrQ+WLKZk1QlkZWJVDjIi7GKpvL3rRixuJT7JYNFtTzrNfg7z8pTQwolhD++Gg=
X-Received: by 2002:a25:8812:0:b0:633:7bd8:16ff with SMTP id
 c18-20020a258812000000b006337bd816ffmr14860594ybl.645.1650873198730; Mon, 25
 Apr 2022 00:53:18 -0700 (PDT)
MIME-Version: 1.0
References: <384791970.449384.1650869933309.JavaMail.zimbra@coherentlogix.com>
In-Reply-To: <384791970.449384.1650869933309.JavaMail.zimbra@coherentlogix.com>
From: marco atzeri <marco.atzeri@gmail.com>
Date: Mon, 25 Apr 2022 09:53:08 +0200
Message-ID: <CAB8Xom9X1jJ1=Qj1bDECeRVPHUaMk5UKXVn8wda0tW4SPPJkCg@mail.gmail.com>
Subject: Re: Apparent regression bug from Python 3.8 to 3.9: can't launch
 scripts using absolute Windows paths
To: Derek Foster <foster@coherentlogix.com>
X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.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@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Cc: The Cygwin Mailing List <cygwin@cygwin.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Mon, Apr 25, 2022 at 8:59 AM Derek Foster  wrote:
>
> Hi, folks.
>
> I have been having problems with Python 3.9 packaged with Cygwin that I did not have with Python 3.8.
>
> Specifically, I am seeing the following:
>
> C:\example>copy con test.py
> #!/usr/bin/env python3
> print('hello')
> ^Z
>
> C:\example>c:\cygwin64\bin\python3.8 test.py
> hello
>
> C:\example>c:\cygwin64\bin\python3.9 test.py
> hello
>
> C:\example>c:\cygwin64\bin\python3.8 C:\example\test.py
> hello
>
> C:\example>c:\cygwin64\bin\python3.9 C:\example\test.py
> /usr/bin/python3.9: can't open file '/cygdrive/c/example/C:\example\test.py': [Errno 2] No such file or directory
>
> There is an open bug on CPython for this ( https://github.com/python/cpython/issues/90907 ), but the people there seem to think it's something that the Cygwin folks should probably address, and I haven't been able to find a corresponding Cygwin bug.
>
> What do I need to do to get this information to the appropriate team so that this bug can be fixed?

Neither of the two is a bug. The usage of Windows style path is not
guaranteed on any Cygwin package.
Some programs handle it other don't

Use "cygpath" to convert it.

There is nothing specific on Python patches for Cygwin to handle it.
More likely a upstream change disabled this "side" feature


> Thanks for any information!

Regards
Marco

-- 
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
