From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: expand-file-name, DOS/Windows, and directory separator Date: Tue, 15 Feb 2022 13:38:36 -0500 Message-ID: References: <87czjodn8m.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39022"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 15 19:51:11 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nK2us-0009tC-QO for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Feb 2022 19:51:11 +0100 Original-Received: from localhost ([::1]:44242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nK2ur-0004rY-5V for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Feb 2022 13:51:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nK2iv-0007in-U9 for emacs-devel@gnu.org; Tue, 15 Feb 2022 13:38:52 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:9988) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nK2im-00077W-QA for emacs-devel@gnu.org; Tue, 15 Feb 2022 13:38:49 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 039BF805E4; Tue, 15 Feb 2022 13:38:39 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8DFEF805B4; Tue, 15 Feb 2022 13:38:37 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1644950317; bh=NjtoJh509rUuOqKggprI44+i+uTkZRRWckZ2hiX14Aw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MWlDzmZwCSd5RGzOi36sSJ2nLmCBqOV3cIeM24H9OnbAXOsJUUtn99u5FUwnxzqPr 76wVIE8ETzeIi983SaACtRT8oLiVMW7+lYHjhuxShUO64JdN51SuRDHQ97agB6bpPj ct1rIiKvxQJuW1BLgU6pac64dpDRI6JhPoQZfwhoMQh/Kgl8hfcMOCnOcxT4R4XrEA /qGRhluMsj5IsHOFWl4xs9ugNADUf8zgJYGy+Q2KES5NrIbn6VAEPko23F1Nofi3Fs BfGOVtvQmgJQtAQ+iLeXw9WM+KbAVrPF478swVb4utFfd6RYr3Ot2SEv9Mx1fBImFt +Jijl1dokxgjw== Original-Received: from pastel (unknown [45.72.237.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 448111209EE; Tue, 15 Feb 2022 13:38:37 -0500 (EST) In-Reply-To: <87czjodn8m.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 15 Feb 2022 09:59:53 -0800") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286342 Archived-At: Eric Abrahamsen [2022-02-15 09:59:53] wrote: > My reading of `expand-file-name' (I don't really speak C) is that, if we > run it over a file path produced by an external process on a Windows I'll let Eli confirm that this is indeed guaranteed behavior, but I just want to point out that the GNU convention (which we use) says these aren't "path"s but "file names". Stefan