diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-07-11 13:29:16 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-07-11 13:29:16 +0000 |
commit | 98e9775a3ad56754de1caa2558c66a0040933460 (patch) | |
tree | dcab9c34ba1c15ef4f34f5bbd205f1f97df65116 /src/bin/psql/command.c | |
parent | c8c40bbc9ea8fcb2e47767a9f15c4a5c74569b8d (diff) |
Use standard macro for psql binary file open. Add comment explaining
control-z requirement.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index b9ee1944367..9b45b96bbf4 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.118 2004/07/11 00:54:55 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.119 2004/07/11 13:29:15 momjian Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -1197,7 +1197,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf) if (!error) { #endif - stream = fopen(fname, R_TEXTFILE); + stream = fopen(fname, PG_BINARY_R); if (!stream) { psql_error("%s: %s\n", fname, strerror(errno)); @@ -1262,7 +1262,7 @@ process_file(char *filename) if (!filename) return false; - fd = fopen(filename, R_TEXTFILE); + fd = fopen(filename, PG_BINARY_R); if (!fd) { |