diff --git a/readme.txt b/readme.txt index d0608888..fe553de5 100644 --- a/readme.txt +++ b/readme.txt @@ -52,9 +52,12 @@ Release notes: Compiler: improved dictionary word matching accuracy. - Compiler: Improved ordering of strings in WRIT chunk, which + Compiler: improved ordering of strings in WRIT chunk, which improves performance on slow platforms like 6502. + Debugger: fails more gracefully when given non-ASCII word + separators. + 1c/03, Lib 1.2.4: Language: CSS text-decoration: reverse has been replaced with diff --git a/src/debugger.c b/src/debugger.c index 5f51ab17..8bef808d 100644 --- a/src/debugger.c +++ b/src/debugger.c @@ -1445,13 +1445,13 @@ int debugger(int argc, char **argv) { } else if(!strcmp(optarg, "none")) { output_config.formatting = FORMAT_NEVER; } else { - fprintf(stderr, "Unrecognized formatting style \"%s\"; valid styles are \"default\", \"ansi\", or \"none\"\n", optarg); + fprintf(stderr, "Error: Unrecognized formatting style \"%s\"; valid styles are \"default\", \"ansi\", or \"none\"\n", optarg); return 1; } break; default: if(opt >= 0) { - fprintf(stderr, "Unimplemented option '%c'\n", opt); + fprintf(stderr, "Error: Unimplemented option '%c'\n", opt); return 1; } break; @@ -1488,6 +1488,12 @@ int debugger(int argc, char **argv) { } if(wordseps) { + for(i = 0; wordseps[i]; i++) { // We can't handle them yet, but we can at least fail gracefully + if(wordseps[i] > 0x7f) { + report(LVL_ERR, 0, "The debugger does not currently support non-ASCII --word-seps"); + exit(1); + } + } prepare_wordseps(wordseps); free(wordseps); } else { diff --git a/src/dgdebug.wasm b/src/dgdebug.wasm deleted file mode 100755 index cb6a5fe2..00000000 Binary files a/src/dgdebug.wasm and /dev/null differ