bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dirname & basename not working on mingw


From: Neil Jerram
Subject: Re: dirname & basename not working on mingw
Date: Thu, 24 Jan 2008 22:23:07 +0000
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

"Charles Day" <address@hidden> writes:

> Hello,

Hi Charles!

> This is my first post to any guile list. I write because I am using
> Guile 1.6.8 on mingw, and the dirname and basename procedures don't
> work properly.  I tried a few variations:
>
> (dirname "abc/def") returns "."
> (dirname "abc\\def") returns "."
> (dirname "c:/abc/def") returns "."
> (dirname "c:\\abc\\def") returns "."
> (dirname "/c/abc/def") returns "/"
>
> So I had a look at the source code in libguile/filesys.c and I think
> I've found the bug - and it's definitely of the "oops!" variety. I've
> attached a patch that should fix the problem for 1.6.8.  If you agree,
> please take a look at whether this affects other versions too.

Many thanks for this.  I do agree, and in fact this is already fixed
in the 1.8.x series.  I've applied your patch now to 1.6.x CVS, so if
and when we do a 1.6.9 release, it will be fixed there too.

Regards,
        Neil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]