bug-guile
[Top][All Lists]
Advanced

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

dirname & basename not working on mingw


From: Charles Day
Subject: dirname & basename not working on mingw
Date: Mon, 21 Jan 2008 15:01:26 -0800

Hello,

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.

Cheers,
Charles

Attachment: filesys.txt
Description: Text document


reply via email to

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