/ Check-in [80541e8b]
Login
Overview
Comment:Set the command-line shell stdin to binary mode on windows.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:80541e8b94b713e8f9e588ae047ffc5ae804ef1c
User & Date: drh 2015-01-18 01:50:54
Context
2015-01-18
20:30
Set binary mode for output on Windows when writing a quoted string that might contain newline characters. check-in: 7096e6c0 user: drh tags: trunk
05:35
Some experimental command line shell input/output enhancements. check-in: 25e99f3f user: mistachkin tags: expShell
01:50
Set the command-line shell stdin to binary mode on windows. check-in: 80541e8b user: drh tags: trunk
2015-01-17
15:26
Fix a harmless compiler warning the VFS for Windows. check-in: ceac571f user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/shell.c.

4171
4172
4173
4174
4175
4176
4177



4178
4179
4180
4181
4182
4183
4184

#if USE_SYSTEM_SQLITE+0!=1
  if( strcmp(sqlite3_sourceid(),SQLITE_SOURCE_ID)!=0 ){
    fprintf(stderr, "SQLite header and source version mismatch\n%s\n%s\n",
            sqlite3_sourceid(), SQLITE_SOURCE_ID);
    exit(1);
  }



#endif
  Argv0 = argv[0];
  main_init(&data);
  stdin_is_interactive = isatty(0);

  /* Make sure we have a valid signal handler early, before anything
  ** else is done.







>
>
>







4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187

#if USE_SYSTEM_SQLITE+0!=1
  if( strcmp(sqlite3_sourceid(),SQLITE_SOURCE_ID)!=0 ){
    fprintf(stderr, "SQLite header and source version mismatch\n%s\n%s\n",
            sqlite3_sourceid(), SQLITE_SOURCE_ID);
    exit(1);
  }
#endif
#if defined(WIN32) || defined(_WIN32)
  _setmode(0, _O_BINARY);
#endif
  Argv0 = argv[0];
  main_init(&data);
  stdin_is_interactive = isatty(0);

  /* Make sure we have a valid signal handler early, before anything
  ** else is done.