mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 20:30:28 +02:00
(scm_compile_shell_switches): Use scm_from_locale_string instead of
scm_makfrom0str.
This commit is contained in:
parent
2562032b61
commit
7311b3e838
1 changed files with 7 additions and 6 deletions
|
@ -503,12 +503,13 @@ scm_compile_shell_switches (int argc, char **argv)
|
|||
else if (! strcmp (argv[i], "-L")) /* add to %load-path */
|
||||
{
|
||||
if (++i < argc)
|
||||
user_load_path = scm_cons (scm_list_3 (sym_set_x,
|
||||
sym_load_path,
|
||||
scm_list_3(sym_cons,
|
||||
scm_makfrom0str (argv[i]),
|
||||
sym_load_path)),
|
||||
user_load_path);
|
||||
user_load_path =
|
||||
scm_cons (scm_list_3 (sym_set_x,
|
||||
sym_load_path,
|
||||
scm_list_3 (sym_cons,
|
||||
scm_from_locale_string (argv[i]),
|
||||
sym_load_path)),
|
||||
user_load_path);
|
||||
else
|
||||
scm_shell_usage (1, "missing argument to `-L' switch");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue