DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5780Veo63496407 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 5780Veo63496407 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=dvTDK1hz X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 339E4385828B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1754613098; bh=BRhBi3wKvzpoAJMZ/WKfKS7ktWn6thGXUHyYWktK9TE=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=dvTDK1hzZqC0aoMJDO/WSllFiG9VfPax+5H0p6BfhdsdKHQiUXk3PMyKo77EWl/uK h0wr4LN4OlJjlwVwQ9dsH8gWXMtNLW7HJzj+DtY8E05z8GpvDOFlRTuoYlv1vZuyC3 7tcTmcXosDXQVdnMr7+DAwsD0grYTLReREDif7tg= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D240D385841B ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D240D385841B ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1754613071; cv=none; b=GK/Pi2Jd3sleJ3Zq5YXdFizMOTuYnDWseIgybw9lYcVauN1GG5hICFNfxUISm99GHNfQ3eW+HNnEvMO/AjzRIp0IpGrIKjvViMsgOXWUqIdGLd9DiscbQDKBqKLEDzQ1h46kGyVOzPtya26SPRqIQfauNPZElGDr4LMweXDyGxg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1754613071; c=relaxed/simple; bh=Q9CVjabPpqjo6iec6ghmeY0J/QAkQcUPu6G4ZK82zX8=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=o4O12SsUbCbhmFO3Mc5LHjznO7ls9eDE/wY0HLfh3E/uuZwFAZ0SRVwNP9yYSUWvLm/IHzpubxBQwWIKYOEiY0/ESY2aWt9dr8yfRlYGIDfawSmNheMsiKJl9I/P4xeXNUlW0TDV3KMu5hsqCfr84vz7ybbWTY1fv5hQsxnnfH4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D240D385841B Date: Thu, 7 Aug 2025 17:31:11 -0700 (PDT) X-X-Sender: jeremyd AT resin DOT csoft DOT net To: cygwin AT cygwin DOT com Subject: getting the on-disk case for a path Message-ID: <36a0093c-fc8b-f268-9cbf-71c1c1268ef7@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 List-Archive: List-Post: List-Help: List-Subscribe: , From: Jeremy Drake via Cygwin Reply-To: Jeremy Drake Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" On a case-insensitive but case-preserving filesystem, is there a Cygwin API to get the on-disk case for a given path? It seems like `realpath` ought to do it but running $ touch case-test $ realpath CASE-TEST returns CASE-TEST. Regardless, canonicalize_file_name or realpath may not be what I want because it would dereference symlinks. Background: I'm trying to debug some test failures in Clang, due to a warning that's supposed to be issued when you #include "foo.h" but the file on disk that it opened is "Foo.h". -- 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