/ Check-in [a3591fb5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:In the CLI, make sure sqlite3_initialize() is called correctly even for non-UTF8 hosts.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a3591fb54178b8f124207ff16e3ef9e58a62585feb3a56ced2b862222aea19d8
User & Date: drh 2018-02-04 20:33:13
Context
2018-02-05
13:28
Update test file walro2.test to account for systems with a page-size (getpagesize()) larger than 32KB. check-in: d9e59cfb user: dan tags: trunk
2018-02-04
20:33
In the CLI, make sure sqlite3_initialize() is called correctly even for non-UTF8 hosts. check-in: a3591fb5 user: drh tags: trunk
01:30
Fix harmless compiler warning seen with MSVC. check-in: 63a91441 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/shell.c.in.

  8090   8090     if( strncmp(sqlite3_sourceid(),SQLITE_SOURCE_ID,60)!=0 ){
  8091   8091       utf8_printf(stderr, "SQLite header and source version mismatch\n%s\n%s\n",
  8092   8092               sqlite3_sourceid(), SQLITE_SOURCE_ID);
  8093   8093       exit(1);
  8094   8094     }
  8095   8095   #endif
  8096   8096     main_init(&data);
  8097         -#if !SQLITE_SHELL_IS_UTF8
  8098   8097     sqlite3_initialize();
         8098  +#if !SQLITE_SHELL_IS_UTF8
  8099   8099     argv = sqlite3_malloc64(sizeof(argv[0])*argc);
  8100   8100     if( argv==0 ){
  8101   8101       raw_printf(stderr, "out of memory\n");
  8102   8102       exit(1);
  8103   8103     }
  8104   8104     for(i=0; i<argc; i++){
  8105   8105       argv[i] = sqlite3_win32_unicode_to_utf8(wargv[i]);