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: Peter Wang <novalazy@xxxxxxxxxx>
- Date: Sat, 24 Apr 2010 11:24:17 +1000
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.
Peter