diff options
author | drh <> | 2023-09-11 20:09:05 +0000 |
---|---|---|
committer | drh <> | 2023-09-11 20:09:05 +0000 |
commit | ceeb9eeaac886b65db99e668ea6139f0017d8e8c (patch) | |
tree | d5fde270491ad4a3e46ad8eb1365bfef2fc26774 /src | |
parent | 17ca53da26cc5b753866a43093c3f328640c961e (diff) | |
download | sqlite-ceeb9eeaac886b65db99e668ea6139f0017d8e8c.tar.gz sqlite-ceeb9eeaac886b65db99e668ea6139f0017d8e8c.zip |
Add the -no-utf8 option to the Windows CLI to cause UTF-8 mode to be omitted.
FossilOrigin-Name: 4cb799c690986b8bd38d07461998824fa53418f7fe31f59d0bf38cae328d9b89
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shell.c.in b/src/shell.c.in index 7dd3d85ce..70cc226a4 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -11924,6 +11924,9 @@ static const char zOptions[] = " -multiplex enable the multiplexor VFS\n" #endif " -newline SEP set output row separator. Default: '\\n'\n" +#if SHELL_WIN_UTF8_OPT + " -no-utf8 do not try to set up UTF-8 output (for legacy)\n" +#endif " -nofollow refuse to open symbolic links to database files\n" " -nonce STRING set the safe-mode escape nonce\n" " -nullvalue TEXT set text string for NULL values. Default ''\n" @@ -12491,6 +12494,10 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){ #if SHELL_WIN_UTF8_OPT console_utf8 = 1; #endif /* SHELL_WIN_UTF8_OPT */ + }else if( cli_strcmp(z,"-no-utf8")==0 ){ +#if SHELL_WIN_UTF8_OPT + console_utf8 = 0; +#endif /* SHELL_WIN_UTF8_OPT */ }else if( cli_strcmp(z,"-heap")==0 ){ i++; }else if( cli_strcmp(z,"-pagecache")==0 ){ |