mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
scm_read_shebang: handle non-ascii characters properly.
* libguile/read.c (scm_read_shebang): Abort scan for reader directive if a character other than [-a-z0-9] is encountered.
This commit is contained in:
parent
fb210d8d16
commit
fa746547fc
1 changed files with 5 additions and 0 deletions
|
@ -1391,6 +1391,11 @@ scm_read_shebang (scm_t_wchar chr, SCM port, scm_t_read_opts *opts)
|
||||||
|
|
||||||
return SCM_UNSPECIFIED;
|
return SCM_UNSPECIFIED;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
scm_ungetc (c, port);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
while (i > 0)
|
while (i > 0)
|
||||||
scm_ungetc (name[--i], port);
|
scm_ungetc (name[--i], port);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue