From 639295f0a5757bc187ada833950bca8476ebe36e Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 21 Apr 2002 07:30:30 +0000 Subject: Enable universal newlines on Windows. Note that NEWS needs more words! --- Lib/test/regrtest.py | 1 - Misc/NEWS | 3 +++ PC/pyconfig.h | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 849d83b..ffbf251 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -511,7 +511,6 @@ _expectations = { test_socketserver test_sunaudiodev test_timing - test_univnewlines """, 'linux2': """ diff --git a/Misc/NEWS b/Misc/NEWS index bbaf2d9..141cba8 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -142,6 +142,9 @@ Tools/Demos Build +- XXX WITH_UNIVERSAL_NEWLINES Somebody fill this in; the PEP doesn't + say how or when to configure it, or how to turn it off. + - On Unix, a shared libpython2.3.so can be created with --enable-shared. - All uses of the CACHE_HASH, INTERN_STRINGS, and DONT_SHARE_SHORT_STRINGS diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 852f354..081142f 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -509,6 +509,9 @@ typedef int pid_t; /* Use Python's own small-block memory-allocator. */ #define WITH_PYMALLOC 1 +/* Enable \n, \r, \r\n line ends on import; also the 'U' mode flag for open. */ +#define WITH_UNIVERSAL_NEWLINES 1 + /* Define if you have clock. */ /* #define HAVE_CLOCK */ -- cgit v0.12