aboutsummaryrefslogtreecommitdiff
path: root/src/bin/initdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/initdb')
-rw-r--r--src/bin/initdb/initdb.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index c94ef6305eb..ae22e7d9fb8 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -490,15 +490,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));