www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/06/01/13:10:54

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 551HAr0d2355372
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 551HAr0d2355372
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=XA8aBWBV
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05FEC3858417
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1748797853;
bh=i76BheyfYW0kD3yXj6wjVr6qSlEORU2PXqqnvjr3L7w=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=XA8aBWBVyMRZahyhgEmTm40jX2pd0NkdZuyADeINFKkMME4Ec5pcp3yd4eay1nv7T
a2XrUJ5I1g06n1ijGXmIS4hgYjz/uqeQ6c/1s01cp5QukJNUABajEeWS/a/cMO5gn1
1NtjxrlbPpvFOyzt9ySRt1M1OaZKlKOaAkIcM8QM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 23C2D3858C62
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 23C2D3858C62
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748797829; cv=none;
b=TbwhsOS/NPC8wxnMjGjhCbzmVaz6w2edt3cGNRakolZoAqpH93Iw2k9YKhD7ItdBCUjwZDdio0CJkyzL8eYsX0uDbzZLuGKaFj/EK0ANTlFRgr5Opu06iufjIxYvkBqrMsDKGKfS338fZ9wif+LkPK9fwM+fKKtN476Kk7wzHoE=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1748797829; c=relaxed/simple;
bh=dIrBMIX7yTZ4JLSRy0I7fkmgKIbrGTDm0g3yxGhJsFM=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=pK2sar7+ibrgbbd14XMf0Q228+V2bUmFdsIlobP2c9pMLvfnZbGbADy0uq1Hjm2xalp0A+kmyqOjNlG6nMgIKTxT91/ZPGQnq3IIL1JQ2jr3k4eoe8rRyKZxum/+pnIBbEnU7ZJxtltxJxuFCmae+VahSWfm5v8GLkIadB9otXI=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23C2D3858C62
Date: Sun, 1 Jun 2025 10:10:28 -0700 (PDT)
X-X-Sender: jeremyd AT resin DOT csoft DOT net
To: cygwin AT cygwin DOT com
Subject: CCP_WIN_A_TO_POSIX and encodings
Message-ID: <b534c3e4-a625-36d5-7090-c69f4a496103@jdrake.com>
MIME-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
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>
From: Jeremy Drake via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jeremy Drake <cygwin AT jdrake DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

In https://github.com/rust-lang/rust/pull/141864 I was going to say that
passing an already-posix path through cygwin_conv_path(CPP_WIN_A_TO_POSIX,
...) was unsafe because Windows ANSI file paths are either CP_ACP or
CP_OEMCP, while Cygwin POSIX path encodings are based on the C locale
encoding (usually UTF-8).  However, when I looked at the code I didn't see
any encoding conversion in the CCP_WIN_A_TO_POSIX path.  Is my
understanding wrong?  Is there a conversion going on somewhere I'm not
seeing?

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