aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-09-12 14:09:45 +0000
committerdrh <>2023-09-12 14:09:45 +0000
commit09e96ea73105356b6d3c8a68f3047748f6eb27f4 (patch)
tree17705083b9fbde6300bd69bfc48549dde97b7900 /src
parentceeb9eeaac886b65db99e668ea6139f0017d8e8c (diff)
downloadsqlite-09e96ea73105356b6d3c8a68f3047748f6eb27f4.tar.gz
sqlite-09e96ea73105356b6d3c8a68f3047748f6eb27f4.zip
Show the "(utf8)" tag on the CLI banner in Windows if in UTF8 mode.
FossilOrigin-Name: 822699a4d9756ec68f17d6e06da7f994730bcf5c7d69ca15e9131721c4ff3b19
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index 70cc226a4..2334872e5 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -12622,11 +12622,15 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
if( stdin_is_interactive ){
char *zHome;
char *zHistory;
+ const char *zCharset = "";
int nHistory;
+#if SHELL_WIN_UTF8_OPT
+ if( console_utf8 ) zCharset = " (utf8)";
+#endif
printf(
- "SQLite version %s %.19s\n" /*extra-version-info*/
+ "SQLite version %s %.19s%s\n" /*extra-version-info*/
"Enter \".help\" for usage hints.\n",
- sqlite3_libversion(), sqlite3_sourceid()
+ sqlite3_libversion(), sqlite3_sourceid(), zCharset
);
if( warnInmemoryDb ){
printf("Connected to a ");