mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
On MS-Windows, don't return file names with backslashes from search-path.
* libguile/load.c (search_path): On MS-Windows, convert all backslashes to forward slashes if the file was found on PATH.
This commit is contained in:
parent
cfefef6bd9
commit
c6a7930b38
1 changed files with 2 additions and 1 deletions
|
@ -657,7 +657,8 @@ search_path (SCM path, SCM filename, SCM extensions, SCM require_exts,
|
||||||
if (stat (buf.buf, stat_buf) == 0
|
if (stat (buf.buf, stat_buf) == 0
|
||||||
&& ! (stat_buf->st_mode & S_IFDIR))
|
&& ! (stat_buf->st_mode & S_IFDIR))
|
||||||
{
|
{
|
||||||
result = scm_from_locale_string (buf.buf);
|
result =
|
||||||
|
scm_from_locale_string (scm_i_mirror_backslashes (buf.buf));
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue