Skip to content

Commit

Permalink
commas in directory listings should return ? because comma is reserve…
Browse files Browse the repository at this point in the history
…d in CBM land
  • Loading branch information
mooinglemur committed Jul 27, 2023
1 parent e75f266 commit da68472
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ieee.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ utf8_to_iso_string(uint8_t *dst, const uint8_t *src)
so = utf8_decode(so, &cp, &e);
if (e) {
dst[i] = '?';
} else if (cp == ',') { // commas aren't valid filename characters
dst[i] = '?';
} else {
dst[i] = iso8859_15_from_unicode(cp);
}
Expand Down

0 comments on commit da68472

Please sign in to comment.