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.
This commit is contained in:
Michael Paquier 2018-09-21 06:41:44 +09:00
parent c9a8a401f1
commit 925673f27b
1 changed files with 0 additions and 8 deletions

View File

@ -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));