diff options
author | Michael Paquier <michael@paquier.xyz> | 2018-09-21 06:41:44 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2018-09-21 06:41:44 +0900 |
commit | 925673f27b1df2d9582f66b33519771137b1df7f (patch) | |
tree | b5a253ac15248c3a8eb0c44f5cc5c58a03a20024 | |
parent | c9a8a401f169ec793b1a89b71b0340dd2cfe8bd7 (diff) | |
download | postgresql-925673f27b1df2d9582f66b33519771137b1df7f.tar.gz postgresql-925673f27b1df2d9582f66b33519771137b1df7f.zip |
Remove special handling for open() in initdb for Windows
40cfe86 enforces the translation mode to text for all frontends, so this
special handling in initdb is not needed anymore.
-rw-r--r-- | src/bin/initdb/initdb.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index b53d6eb9ccb..cb8c7450d9b 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -491,15 +491,7 @@ readfile(const char *path) char *buffer; int c; -#ifdef WIN32 - /* - * On Windows, we have to open the file in text mode so that carriage - * returns are stripped. - */ - if ((infile = fopen(path, "rt")) == NULL) -#else if ((infile = fopen(path, "r")) == NULL) -#endif { fprintf(stderr, _("%s: could not open file \"%s\" for reading: %s\n"), progname, path, strerror(errno)); |