|
12 | 12 | * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
13 | 13 | * Portions Copyright (c) 1994, Regents of the University of California
|
14 | 14 | *
|
15 |
| - * $PostgreSQL: pgsql/src/include/c.h,v 1.165 2004/05/21 05:08:03 tgl Exp $ |
| 15 | + * $PostgreSQL: pgsql/src/include/c.h,v 1.166 2004/07/11 13:29:16 momjian Exp $ |
16 | 16 | *
|
17 | 17 | *-------------------------------------------------------------------------
|
18 | 18 | */
|
@@ -671,6 +671,13 @@ typedef NameData *Name;
|
671 | 671 | * ----------------------------------------------------------------
|
672 | 672 | */
|
673 | 673 |
|
| 674 | +/* |
| 675 | + *NOTE: this is also used for opening text files. |
| 676 | + * WIN32 treats Control-Z as EOF in files opened in text mode. |
| 677 | + * Therefore, we open files in binary mode on Win32 so we can read |
| 678 | + * literal control-Z. The other affect is that we see CRLF, but |
| 679 | + * that is OK because we can already handle those cleanly. |
| 680 | + */ |
674 | 681 | #if defined(__CYGWIN__)|| defined(WIN32)
|
675 | 682 | #definePG_BINARYO_BINARY
|
676 | 683 | #definePG_BINARY_R "rb"
|
|