19 lines
879 B
Diff
19 lines
879 B
Diff
|
diff --git "a/D:\\_Sandbox\\curl\\curl-src\\lib\\url.c.orig" "b/D:\\_Sandbox\\curl\\curl-src\\lib\\url.c"
|
||
|
index 1ee38af..0a6ba91 100644
|
||
|
--- "a/lib/url.c"
|
||
|
+++ "b/lib/url.c"
|
||
|
@@ -1577,11 +1577,11 @@ CURLcode Curl_idnconvert_hostname(struct Curl_easy *data,
|
||
|
#else
|
||
|
int flags = IDN2_NFC_INPUT;
|
||
|
#endif
|
||
|
- int rc = idn2_lookup_ul((const char *)host->name, &ace_hostname, flags);
|
||
|
+ int rc = idn2_lookup_u8((const uint8_t *)host->name, (uint8_t **)&ace_hostname, flags);
|
||
|
if(rc != IDN2_OK)
|
||
|
/* fallback to TR46 Transitional mode for better IDNA2003
|
||
|
compatibility */
|
||
|
- rc = idn2_lookup_ul((const char *)host->name, &ace_hostname,
|
||
|
+ rc = idn2_lookup_u8((const uint8_t *)host->name, (uint8_t **)&ace_hostname,
|
||
|
IDN2_TRANSITIONAL);
|
||
|
if(rc == IDN2_OK) {
|
||
|
host->encalloc = (char *)ace_hostname;
|