Re: [AD] trailing backslash under windows |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] trailing backslash under windows
- From: Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx>
- Date: Fri, 23 Apr 2010 19:28:52 -0600
On April 23, 2010, Peter Wang wrote:
> On 24 April 2010 05:44, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> > I just fixed a strange bug, basically these two would fail under
> > Windows 7:
> >
> > ex_dir data/
> > ex_dir data\
> >
> > However this would work:
> >
> > ex_dir data
> >
> > In Wine all three work, and in Linux the versions with and without a
> > slash works. I tracked the problem down to calls to the stat() function
> > which would always fail with ENOENT whenever there was a trailing
> > slash. I already committed a fix just posting here anyway since it
> > seems so weird.
>
> That is a known behaviour of Windows. I thought we already accounted
> for that somewhere, but maybe I'm thinking of another project.
We did, in opendir, but not stat. I think I just forgot about it.
> Peter
>
> -------------------------------------------------------------------------
> -----
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx