mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
char names should obey case-(in)sensitivity (issue #471)
This commit is contained in:
parent
bfcab41056
commit
22f87f67ab
1 changed files with 1 additions and 1 deletions
2
sexp.c
2
sexp.c
|
@ -3120,7 +3120,7 @@ sexp sexp_read_raw (sexp ctx, sexp in, sexp *shares) {
|
||||||
} else {
|
} else {
|
||||||
res = 0;
|
res = 0;
|
||||||
for (c2=0; c2 < sexp_num_char_names; c2++) {
|
for (c2=0; c2 < sexp_num_char_names; c2++) {
|
||||||
if (strcasecmp(str, sexp_char_names[c2].name) == 0) {
|
if ((sexp_port_fold_casep(in) ? strcasecmp : strcmp)(str, sexp_char_names[c2].name) == 0) {
|
||||||
res = sexp_make_character(sexp_char_names[c2].ch);
|
res = sexp_make_character(sexp_char_names[c2].ch);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue