diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-07-11 00:54:55 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-07-11 00:54:55 +0000 |
| commit | 330c6c42be48058e3ea1abf4fbd8dad82d554d58 (patch) | |
| tree | 5ed15d98d423c9231b8b002c1e2dbc4e40aba4e4 /src/bin/psql/copy.c | |
| parent | e5ca4bde793ec2414daa5ba26fbfb6bb895e5448 (diff) | |
Open files in binary mode on Win32 so control-z isn't seen as EOF.
Diffstat (limited to 'src/bin/psql/copy.c')
| -rw-r--r-- | src/bin/psql/copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c index a8998fd23d1..cc899bf8796 100644 --- a/src/bin/psql/copy.c +++ b/src/bin/psql/copy.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.47 2004/05/07 00:24:58 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.48 2004/07/11 00:54:55 momjian Exp $ */ #include "postgres_fe.h" #include "copy.h" @@ -516,7 +516,7 @@ do_copy(const char *args) if (options->from) { if (options->file) - copystream = fopen(options->file, "r"); + copystream = fopen(options->file, R_TEXTFILE); else if (!options->psql_inout) copystream = pset.cur_cmd_source; else |
