Skip to content

Commit 925673f

Browse files
committed
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.
1 parent c9a8a40 commit 925673f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/bin/initdb/initdb.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -491,15 +491,7 @@ readfile(const char *path)
491491
char *buffer;
492492
int c;
493493

494-
#ifdef WIN32
495-
/*
496-
* On Windows, we have to open the file in text mode so that carriage
497-
* returns are stripped.
498-
*/
499-
if ((infile = fopen(path, "rt")) == NULL)
500-
#else
501494
if ((infile = fopen(path, "r")) == NULL)
502-
#endif
503495
{
504496
fprintf(stderr, _("%s: could not open file \"%s\" for reading: %s\n"),
505497
progname, path, strerror(errno));

0 commit comments

Comments
 (0)