1
Fork 0
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:
Eli Zaretskii 2014-08-15 09:47:52 +03:00
parent cfefef6bd9
commit c6a7930b38

View file

@ -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;
} }
} }