Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test2046
index 0f0eb52..2622ccf 100644 (file)
@@ -41,9 +41,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
  </name>
@@ -60,14 +63,14 @@ http://åäö.se:%HTTPPORT/2046 --resolve xn--4cab6c.se:%HTTPPORT:%HOSTIP -w "%{
 ^User-Agent:.*
 </strip>
 <protocol>
-GET /2046 HTTP/1.1\r
-Host: xn--4cab6c.se:%HTTPPORT\r
-Accept: */*\r
-\r
-GET /20460001 HTTP/1.1\r
-Host: xn--4cab6c.se:%HTTPPORT\r
-Accept: */*\r
-\r
+GET /2046 HTTP/1.1
+Host: xn--4cab6c.se:%HTTPPORT
+Accept: */*
+
+GET /20460001 HTTP/1.1
+Host: xn--4cab6c.se:%HTTPPORT
+Accept: */*
+
 </protocol>
 
 <stdout>