Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit925673f

Browse files
committed
Remove special handling for open() in initdb for Windows
40cfe86 enforces the translation mode to text for all frontends, so thisspecial handling in initdb is not needed anymore.
1 parentc9a8a40 commit925673f

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
intc;
493493

494-
#ifdefWIN32
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)

[8]ページ先頭

©2009-2025 Movatter.jp