Skip to content

Commit

Permalink
Set the command-line shell stdin to binary mode on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
D. Richard Hipp committed Jan 18, 2015
1 parent 7e7b992 commit e594dbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -4175,6 +4175,9 @@ int main(int argc, char **argv){
sqlite3_sourceid(), SQLITE_SOURCE_ID);
exit(1);
}
#endif
#if defined(WIN32) || defined(_WIN32)
_setmode(0, _O_BINARY);
#endif
Argv0 = argv[0];
main_init(&data);
Expand Down

0 comments on commit e594dbd

Please sign in to comment.