aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2024-10-08 17:27:00 +0000
committerdrh <>2024-10-08 17:27:00 +0000
commit7f5a10e4ba20826b03ea898945f3ae9138b5568e (patch)
treedf8008fa983135ed373d4c39410c168a609daf9b /src
parentab85d9abd6e5ed5997387c9db31dd6dfaece2681 (diff)
downloadsqlite-7f5a10e4ba20826b03ea898945f3ae9138b5568e.tar.gz
sqlite-7f5a10e4ba20826b03ea898945f3ae9138b5568e.zip
Enable the ".crnl" command on Windows builds of the CLI even if the
SQLITE_U8TEXT_ONLY or SQLITE_U8TEST_STDIO compile-time options are used. FossilOrigin-Name: 6364a2f0449794b0c089ba9fbc099f5558b88ac91c459caf7fae3a43dfcd192e
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index 3f894e973..50eb3ae2c 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -4952,10 +4952,9 @@ static const char *(azHelp[]) = {
".clone NEWDB Clone data into NEWDB from the existing database",
#endif
".connection [close] [#] Open or close an auxiliary database connection",
-#if defined(_WIN32) && !defined(SQLITE_U8TEXT_ONLY) \
- && !defined(SQLITE_U8TEXT_STDIO)
+#if defined(_WIN32)
".crnl on|off Translate \\n to \\r\\n. Default ON",
-#endif /* _WIN32 && U8TEXT_ONLY && U8TEXT_STDIO */
+#endif
".databases List names and files of attached databases",
".dbconfig ?op? ?val? List or change sqlite3_db_config() options",
#if SQLITE_SHELL_HAVE_RECOVER
@@ -8574,8 +8573,7 @@ static int do_meta_command(char *zLine, ShellState *p){
}else
if( c=='c' && n==4 && cli_strncmp(azArg[0], "crnl", n)==0 ){
-#if !defined(_WIN32) || defined(SQLITE_U8TEXT_ONLY) \
- || defined(SQLITE_U8TEXT_STDIO)
+#if !defined(_WIN32)
sqlite3_fputs("The \".crnl\" command is disable in this build.\n", p->out);
#else
if( nArg==2 ){