1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 04:01:38 +00:00

SCP: Allow command files to contain UTF-8 data.

- Ignore a UTF_BOM sequence at the beginning of command files.
- Provide a sim_isspace() which makes sure that isspace only considers the character being examined as an unsigned char.
This commit is contained in:
Mark Pizzolato
2015-01-04 06:59:56 -08:00
parent fe43187cde
commit 256bbdddc9
2 changed files with 31 additions and 23 deletions

1
scp.h
View File

@@ -125,6 +125,7 @@ t_stat reset_all_p (uint32 start_device);
char *sim_dname (DEVICE *dptr);
char *sim_uname (UNIT *dptr);
t_stat get_yn (char *ques, t_stat deflt);
int sim_isspace (char c);
char *get_sim_opt (int32 opt, char *cptr, t_stat *st);
char *get_glyph (const char *iptr, char *optr, char mchar);
char *get_glyph_nc (const char *iptr, char *optr, char mchar);