]> granicus.if.org Git - curl/commitdiff
Duplicate iconv-data too in curl_easy_duphandle().
authorGisle Vanem <gvanem@broadpark.no>
Sat, 9 Sep 2006 16:36:05 +0000 (16:36 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Sat, 9 Sep 2006 16:36:05 +0000 (16:36 +0000)
lib/easy.c

index 25d4897b6aa88ae92545261fb673dd15a37cca74..37c0c9a01fafa4ce62a96adbcef9cef81e0b4ce9 100644 (file)
@@ -612,6 +612,12 @@ CURL *curl_easy_duphandle(CURL *incurl)
       break;
 #endif
 
+#if defined(CURL_DOES_CONVERSIONS) && defined(HAVE_ICONV)
+  outcurl->outbound_cd = data->outbound_cd;
+  outcurl->inbound_cd  = data->inbound_cd;
+  outcurl->utf8_cd     = data->utf8_cd;
+#endif
+
     Curl_easy_initHandleData(outcurl);
 
     fail = FALSE; /* we reach this point and thus we are OK */