]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Andres Garcia's text mode fix for the 'data' part
authorDaniel Stenberg <daniel@haxx.se>
Fri, 3 Jun 2005 14:06:03 +0000 (14:06 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 3 Jun 2005 14:06:03 +0000 (14:06 +0000)
14 files changed:
CHANGES
RELEASE-NOTES
tests/data/test500
tests/data/test502
tests/data/test506
tests/data/test508
tests/data/test510
tests/data/test512
tests/data/test514
tests/data/test515
tests/data/test516
tests/data/test519
tests/data/test522
tests/runtests.pl

diff --git a/CHANGES b/CHANGES
index ac7757299f4c4b5740586d95bd85d77dad1d282b..dfd9f4421bdf70800e47be78dc3d02189c96b3f5 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,15 @@
                                   Changelog
 
 
+Daniel (3 June 2005)
+- Andres Garcia provided yet another text mode patch for several test cases so
+  that they do text comparisions better on Windows (newline-wise).
+
+Daniel (1 June 2005)
+- The configure check for c-ares now adds the cares lib before the other libs,
+  to make it build fine with mingw. Inspired by Tupone Alfredo's bug report
+  (and patch) #1212940
+
 Daniel (31 May 2005)
 - Todd Kulesza reported a flaw in the proxy option, since a numerical IPv6
   address was not possible to use. It is now, but requires it written
index e9aaf2ff5d315215cda6445c95fd338bffbe1602..2b371448368db67edeccaf6dc52c86ff7e44f1b2 100644 (file)
@@ -15,6 +15,7 @@ This release includes the following changes:
 
 This release includes the following bugfixes:
 
+ o c-ares enabled build with mingw
  o proxy host set with numerical IPv6 address
  o better treatment of binary zeroes in HTTP response headers
  o fixed the notorius FTP server failure in the test suite
@@ -31,6 +32,7 @@ Other curl-related news since the previous public release:
 This release would not have looked like this without help, code, reports and
 advice from friends like these:
 
- John McGowan, Georg Wicherski, Andres Garcia, Eric Cooper, Todd Kulesza
+ John McGowan, Georg Wicherski, Andres Garcia, Eric Cooper, Todd Kulesza,
+ Tupone Alfredo
 
         Thanks! (and sorry if I forgot to mention someone)
index 95e2b260d59c71f8edb7d49156241f2b7e4cfb3c..eafd138251cd950daaf60d4b0dd7c59be5e8a72b 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Server-side
 <reply name="1">
-<data>
+<data mode="text">
 HTTP/1.1 200 OK
 Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake
index bd8607fb9182bc68ac6766739e74ff045bfb0a57..4ef6e5d9ceba3c11ff54b82dead55bcc58d682e0 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Server-side
 <reply>
-<data>
+<data mode="text">
 foo
    bar swsclose
 bar
index c89bbed94719e7c46108028dfb201949e853833a..3c02702bf9db6f29b1dbf66d18b57eb3a0eed3b5 100644 (file)
@@ -35,7 +35,7 @@ Content-Type: text/html
 Content-Length: 32
 
 run 3: overwrite cookie 1 and 4
-</data5>
+</data3>
 </reply>
 
 # Client-side
@@ -56,7 +56,7 @@ http://%HOSTIP:%HTTPPORT/506
 
 # Verify data after the test has been "shot"
 <verify>
-<stdout>
+<stdout mode="text">
 GLOBAL_INIT
 SHARE_INIT
 CURL_LOCK_DATA_COOKIE
@@ -145,7 +145,7 @@ GLOBAL_CLEANUP
 <stderr>
 http://%HOSTIP:%HTTPPORT/506 
 </stderr>
-<file name="log/jar506">
+<file name="log/jar506" mode="text">
 # Netscape HTTP Cookie File
 # http://www.netscape.com/newsref/std/cookie_spec.html
 # This file was generated by libcurl! Edit at your own risk.
index 7940b1260d5e362a7a878af2894dc9d549e2729b..3d3c6c9e07382c29a2472ffe8f4c36c38bd9b0a4 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Server-side
 <reply>
-<data>
+<data mode="text">
 HTTP/1.1 200 OK
 Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake swsclose
index 22b0aad2ddfe9a5f5572c86c9f7d87bc037dc127..79c2d11a645a0c8e0a1b12d80bf5b4d4dea57a25 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Server-side
 <reply>
-<data>
+<data mode="text">
 HTTP/1.1 200 OK
 Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake swsclose
index c6e3dbad4c5c22d39537c55b56cdfc4a088f7ecc..1df968b3669129f456888b5780c4869c9b5739ef 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Server-side
 <reply>
-<data>
+<data mode=text>
 HTTP/1.1 200 OK swsclose\r
 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
 Server: yes\r
index eed0da56eb788800a50cb8a1931345a541c72612..5db18b3569d01db771508fcd51a51563439cdd88 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Server-side
 <reply>
-<data>
+<data mode="text">
 HTTP/1.1 200 OK
 Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake
index 65d0f96aa8106041da25d8999af76e18c0604126..f6be8c42c0bfc219ecd1440427dc381d1e52ff58 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Server-side
 <reply>
-<data>
+<data mode="text">
 HTTP/1.1 200 OK swsclose
 Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake
index e1c890ac1463b44fa77ee8184f81035355faa13e..cd45b3115ce52c4213c9dc6a62808ca8e0d7de32 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Server-side
 <reply>
-<data>
+<data mode="text">
 HTTP/1.1 200 OK swsclose
 Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake
index d9adfdde29d316e411b6caaf42a2f2cba3a9497b..e86acabd2531d4b073aa0b477d5e12cbfb0117c2 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Server-side
 <reply>
-<data>
+<data mode="text">
 HTTP/1.1 200 OK swsbounce
 Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake
index 6578e33c4409983e702598ad40359a0ab07569a1..753526c84415a83f075cb7b9222c6d69729c255f 100644 (file)
@@ -52,7 +52,7 @@ Host: 127.0.0.1:%HTTPPORT
 Accept: */*\r
 \r
 </protocol>
-<stdout>
+<stdout mode="text">
 hello
 </stdout>
 </verify>
index b0b3e24e5a26a7b099789fbf8609c870bd5a5fd8..572e06c51852e6e9e52a740bd70814213bf2739e 100755 (executable)
@@ -1366,6 +1366,14 @@ sub singletest {
     if(!$replyattr{'nocheck'} && (@reply || $replyattr{'sendzero'})) {
         # verify the received data
         my @out = loadarray($CURLOUT);
+        my %hash = getpartattr("reply", "data");
+        # get the mode attribute
+        my $filemode=$hash{'mode'};
+        if(($filemode eq "text") && $has_textaware) {
+            # text mode when running on windows: fix line endings
+            map s/\r\n/\n/g, @out;
+        }
+
         $res = compare("data", \@out, \@reply);
         if ($res) {
             return 1;