|
3 | 3 | * |
4 | 4 | * Copyright (c) 2000-2003, PostgreSQL Global Development Group |
5 | 5 | * |
6 | | - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.117 2004/06/18 06:14:04 tgl Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.118 2004/07/11 00:54:55 momjian Exp $ |
7 | 7 | */ |
8 | 8 | #include"postgres_fe.h" |
9 | 9 | #include"command.h" |
@@ -1197,7 +1197,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf) |
1197 | 1197 | if (!error) |
1198 | 1198 | { |
1199 | 1199 | #endif |
1200 | | -stream=fopen(fname,"r"); |
| 1200 | +stream=fopen(fname,R_TEXTFILE); |
1201 | 1201 | if (!stream) |
1202 | 1202 | { |
1203 | 1203 | psql_error("%s: %s\n",fname,strerror(errno)); |
@@ -1262,7 +1262,7 @@ process_file(char *filename) |
1262 | 1262 | if (!filename) |
1263 | 1263 | return false; |
1264 | 1264 |
|
1265 | | -fd=fopen(filename,"r"); |
| 1265 | +fd=fopen(filename,R_TEXTFILE); |
1266 | 1266 |
|
1267 | 1267 | if (!fd) |
1268 | 1268 | { |
|