all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* expand-file-name, DOS/Windows, and directory separator
@ 2022-02-15 17:59 Eric Abrahamsen
  2022-02-15 18:38 ` Stefan Monnier
  2022-02-15 19:15 ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: Eric Abrahamsen @ 2022-02-15 17:59 UTC (permalink / raw)
  To: emacs-devel

Hi,

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
machine -- meaning path strings where the directory separator might be a
backward slash -- it will normalize that separator to a unix-style
forward slash. It looks like fileio.c:1247 calls dostounix_filename, and
I'm assuming that's what that does.

Is that a correct assumption? Can I rely on that behavior? Again this
isn't a file path produced by an Emacs function like `directory-files',
but by an external process returning a list of file names into a process
buffer.

TIA,
Eric




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-02-15 23:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-15 17:59 expand-file-name, DOS/Windows, and directory separator Eric Abrahamsen
2022-02-15 18:38 ` Stefan Monnier
2022-02-15 19:39   ` Eric Abrahamsen
2022-02-15 19:57     ` Eli Zaretskii
2022-02-15 20:15       ` Eric Abrahamsen
2022-02-15 20:24         ` Eli Zaretskii
2022-02-15 20:46           ` Eric Abrahamsen
2022-02-15 21:51             ` Stefan Monnier
2022-02-15 23:03               ` Eric Abrahamsen
2022-02-15 19:15 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.