Commit 925673f2 authored by Michael Paquier's avatar Michael Paquier

Remove special handling for open() in initdb for Windows

40cfe860 enforces the translation mode to text for all frontends, so this
special handling in initdb is not needed anymore.
parent c9a8a401
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment