Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test2047
index f54a30a..7c06720 100644 (file)
@@ -42,9 +42,12 @@ http
 idn
 </features>
 <setenv>
-CHARSET=UTF-8
-LANG=en_US.UTF-8
+LC_ALL=
+LC_CTYPE=en_US.UTF-8
 </setenv>
+<precheck>
+perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
+</precheck>
  <name>
 Connection re-use with IDN host name over HTTP proxy
  </name>
@@ -61,16 +64,16 @@ http://åäö.se/2047 -x %HOSTIP:%HTTPPORT -w "%{num_connects}\n%{num_redirects}
 ^User-Agent:.*
 </strip>
 <protocol>
-GET http://xn--4cab6c.se/2047 HTTP/1.1\r
-Host: xn--4cab6c.se\r
-Accept: */*\r
-Proxy-Connection: Keep-Alive\r
-\r
-GET http://xn--4cab6c.se/20470001 HTTP/1.1\r
-Host: xn--4cab6c.se\r
-Accept: */*\r
-Proxy-Connection: Keep-Alive\r
-\r
+GET http://xn--4cab6c.se/2047 HTTP/1.1
+Host: xn--4cab6c.se
+Accept: */*
+Proxy-Connection: Keep-Alive
+
+GET http://xn--4cab6c.se/20470001 HTTP/1.1
+Host: xn--4cab6c.se
+Accept: */*
+Proxy-Connection: Keep-Alive
+
 </protocol>
 
 <stdout>