]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
windows: add unicode to feature list
authorViktor Szakats <commit@vsz.me>
Tue, 14 Jul 2020 08:30:17 +0000 (08:30 +0000)
committerViktor Szakats <commit@vsz.me>
Tue, 14 Jul 2020 08:30:17 +0000 (08:30 +0000)
Reviewed-by: Marcel Raad
Reviewed-by: Marc Hörsken
Closes #5491

docs/libcurl/curl_version_info.3
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/version.c
packages/OS400/curl.inc.in
src/tool_help.c

index 7a6a540ffb15ad7c5227f1e36c3f5e56d85b8891..9be46f7bd600ec6adf48fd5cd9a38a5cb52386ee 100644 (file)
@@ -163,6 +163,9 @@ supports Kerberos V5 authentication for FTP, IMAP, POP3, SMTP and SOCKSv5 proxy
 (Added in 7.40.0)
 .IP CURL_VERSION_LARGEFILE
 libcurl was built with support for large files. (Added in 7.11.1)
+.IP CURL_VERSION_UNICODE
+libcurl was built with Unicode support on Windows. This makes non-ASCII
+characters work in filenames and options passed to libcurl. (Added in 7.72.0)
 .IP CURL_VERSION_LIBZ
 supports HTTP deflate using libz (Added in 7.10)
 .IP CURL_VERSION_MULTI_SSL
index 97224807ccfa587afdca2a41126e57262a1512d9..63fc56b9f639d16bc536639b627b257b43e13086 100644 (file)
@@ -970,6 +970,7 @@ CURL_VERSION_SSPI               7.13.2
 CURL_VERSION_TLSAUTH_SRP        7.21.4
 CURL_VERSION_UNIX_SOCKETS       7.40.0
 CURL_VERSION_ZSTD               7.72.0
+CURL_VERSION_UNICODE            7.72.0
 CURL_WAIT_POLLIN                7.28.0
 CURL_WAIT_POLLOUT               7.28.0
 CURL_WAIT_POLLPRI               7.28.0
index 9104828c3378fcbaa1ba920aa4976fab5cb75e81..5284cdc43f07e59e0b6001f67b3284da580aec65 100644 (file)
@@ -2843,6 +2843,8 @@ typedef struct curl_version_info_data curl_version_info_data;
 #define CURL_VERSION_ALTSVC       (1<<24) /* Alt-Svc handling built-in */
 #define CURL_VERSION_HTTP3        (1<<25) /* HTTP3 support built-in */
 #define CURL_VERSION_ZSTD         (1<<26) /* zstd features are present */
+#define CURL_VERSION_UNICODE      (1<<27) /* Unicode support on Windows */
+
  /*
  * NAME curl_version_info()
  *
index 91fb092ae063179984b160a62eb5e995295f6794..4f6dda24fe09a0471dd6330ebf3a17e419f4f05e 100644 (file)
@@ -390,6 +390,9 @@ static curl_version_info_data version_info = {
     ( (SIZEOF_OFF_T > 4) || defined(USE_WIN32_LARGE_FILES) )
   | CURL_VERSION_LARGEFILE
 #endif
+#if defined(WIN32) && defined(UNICODE) && defined(_UNICODE)
+  | CURL_VERSION_UNICODE
+#endif
 #if defined(CURL_DOES_CONVERSIONS)
   | CURL_VERSION_CONV
 #endif
index 5b3b2c05919edb921aee7d000301dc8f3150fdbc..33ac8b34b17e99b3dab15a424c10dac11c0fd084 100644 (file)
      d                 c                   X'01000000'
      d CURL_VERSION_HTTP3...
      d                 c                   X'02000000'
+     d CURL_VERSION_UNICODE...
+     d                 c                   X'04000000'
       *
      d CURL_HTTPPOST_FILENAME...
      d                 c                   X'00000001'
index f60681ced45ac2cc869ac542c27a6d446c8257fc..0fc818d3c7e10a0d3a7b90680553fb6f63c604ea 100644 (file)
@@ -537,6 +537,7 @@ static const struct feat feats[] = {
   {"IDN",            CURL_VERSION_IDN},
   {"IPv6",           CURL_VERSION_IPV6},
   {"Largefile",      CURL_VERSION_LARGEFILE},
+  {"Unicode",        CURL_VERSION_UNICODE},
   {"SSPI",           CURL_VERSION_SSPI},
   {"GSS-API",        CURL_VERSION_GSSAPI},
   {"Kerberos",       CURL_VERSION_KERBEROS5},