1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Fix the CLI so that the --bom option only outputs a single BOM, not two.

FossilOrigin-Name: 76b6331e6a705a420a64820a18214f07cf4c1d5151e7158d6fff09964e63f352
This commit is contained in:
drh
2024-09-28 19:52:38 +00:00
parent 33669ef289
commit 54fd01c4ab
3 changed files with 9 additions and 9 deletions

View File

@ -9913,7 +9913,7 @@ static int do_meta_command(char *zLine, ShellState *p){
int eMode = 0;
int bOnce = 0; /* 0: .output, 1: .once, 2: .excel/.www */
int bPlain = 0; /* --plain option */
static const char *zBomUtf8 = "\xef\xbb\xbf";
static const char *zBomUtf8 = "\357\273\277";
const char *zBom = 0;
failIfSafeMode(p, "cannot run .%s in safe mode", azArg[0]);