[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: expand-file-name, DOS/Windows, and directory separator
From: |
Eli Zaretskii |
Subject: |
Re: expand-file-name, DOS/Windows, and directory separator |
Date: |
Tue, 15 Feb 2022 21:15:13 +0200 |
> From: Eric Abrahamsen <eric@ericabrahamsen.net>
> Date: Tue, 15 Feb 2022 09:59:53 -0800
>
> 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?
Yes.
> Can I rely on that behavior?
I'd rather you didn't. Why do you need such an assumption? Emacs on
Windows can cope with file names that use any style of slashes.
- expand-file-name, DOS/Windows, and directory separator, Eric Abrahamsen, 2022/02/15
- Re: expand-file-name, DOS/Windows, and directory separator, Stefan Monnier, 2022/02/15
- Re: expand-file-name, DOS/Windows, and directory separator, Eric Abrahamsen, 2022/02/15
- Re: expand-file-name, DOS/Windows, and directory separator, Eli Zaretskii, 2022/02/15
- Re: expand-file-name, DOS/Windows, and directory separator, Eric Abrahamsen, 2022/02/15
- Re: expand-file-name, DOS/Windows, and directory separator, Eli Zaretskii, 2022/02/15
- Re: expand-file-name, DOS/Windows, and directory separator, Eric Abrahamsen, 2022/02/15
- Re: expand-file-name, DOS/Windows, and directory separator, Stefan Monnier, 2022/02/15
- Re: expand-file-name, DOS/Windows, and directory separator, Eric Abrahamsen, 2022/02/15
Re: expand-file-name, DOS/Windows, and directory separator,
Eli Zaretskii <=