From e7fe7536b1047e70201e518ed9890086ee319b34 Mon Sep 17 00:00:00 2001 From: maxpat78 Date: Tue, 10 Oct 2023 08:04:52 +0200 Subject: [PATCH] Update shell_cmds.cpp CHOICE now allows local translated YN chars --- src/shell/shell_cmds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index 3f5d4581ea..91f73ea8c2 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -3384,7 +3384,7 @@ bool get_param(char *&args, char *&rem, char *&temp, char &wait_char, int &wait_ void DOS_Shell::CMD_CHOICE(char * args){ HELP("CHOICE"); - static char defchoice[3] = {'y','n',0}; + static char defchoice[3] = {MSG_Get("INT21_6523_YESNO_CHARS")[0],MSG_Get("INT21_6523_YESNO_CHARS")[1],0}; char *rem1 = NULL, *rem2 = NULL, *rem = NULL, *temp = NULL, waitchar = 0, *ptr; int waitsec = 0; bool optC = false, optT = false; @@ -3401,7 +3401,7 @@ void DOS_Shell::CMD_CHOICE(char * args){ return; } } - if (!rem || !*rem) rem = defchoice; /* No choices specified use YN */ + if (!rem || !*rem) rem = defchoice; /* No choices specified use (national) YN */ ptr = rem; uint8_t c; if(!optS) while ((c = (uint8_t)(*ptr))) *ptr++ = (char)toupper(c); /* When in no case-sensitive mode. make everything upcase */