[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 49/173: IDN: Use TR46 'transitional' for toASCII tr
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 49/173: IDN: Use TR46 'transitional' for toASCII translations |
Date: |
Fri, 24 Feb 2017 14:01:11 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.53.1
in repository gnurl.
commit f30cbcac11f5a627992f0c48cff91135808fa70f
Author: Tim Rühsen <address@hidden>
AuthorDate: Fri Jan 13 09:36:33 2017 +0100
IDN: Use TR46 'transitional' for toASCII translations
References: http://unicode.org/faq/idn.html
http://unicode.org/reports/tr46
Closes #1206
---
lib/url.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/url.c b/lib/url.c
index c7a91a4f7..29beb3853 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4010,7 +4010,12 @@ static void fix_hostname(struct connectdata *conn,
struct hostname *host)
#ifdef USE_LIBIDN2
if(idn2_check_version(IDN2_VERSION)) {
char *ace_hostname = NULL;
- int rc = idn2_lookup_ul((const char *)host->name, &ace_hostname, 0);
+#ifdef IDN2_TRANSITIONAL
+ int flags = IDN2_NFC_INPUT | IDN2_TRANSITIONAL;
+#else
+ int flags = IDN2_NFC_INPUT;
+#endif
+ int rc = idn2_lookup_ul((const char *)host->name, &ace_hostname, flags);
if(rc == IDN2_OK) {
host->encalloc = (char *)ace_hostname;
/* change the name pointer to point to the encoded hostname */
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 19/173: cmake: use crypt32.lib when building with OpenSSL on windows, (continued)
- [GNUnet-SVN] [gnurl] 19/173: cmake: use crypt32.lib when building with OpenSSL on windows, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 26/173: docs/libcurl: TCP_KEEPALIVE start and interval default to 60, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 20/173: curl_formadd.3: CURLFORM_CONTENTSLENGTH not needed when chunked, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 53/173: IDN: Fix compile time detection of linidn2 TR46, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 58/173: curl: reset the easy handle at --next, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 42/173: http2_send: avoid unsigned integer wrap around, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 69/173: http: print correct HTTP string in verbose output when using HTTP/2, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 43/173: smtp: Fix STARTTLS denied error message, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 36/173: lib506: fix build for Open Watcom, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 38/173: examples: make the C++ examples follow our code style too, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 49/173: IDN: Use TR46 'transitional' for toASCII translations,
gnunet <=
- [GNUnet-SVN] [gnurl] 62/173: RELEASE-NOTES: synced with a7c73ae309c, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 25/173: curl.h: CURLE_FUNCTION_NOT_FOUND is no longer in use, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 41/173: cmake: Fix passing _WINSOCKAPI_ macro to compiler, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 54/173: IDN: revert use of the transitional option, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 52/173: url: --noproxy option overrides NO_PROXY environment variable, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 46/173: url: Fix parsing for when 'file' is the default protocol, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 34/173: COPYING: update the generic copyright year range, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 94/173: TODO: remove "Support TLS v1.3", gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 100/173: docs: proofread README.netware README.win32, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 128/173: cmdline-opts/page-footer: ftp.sunet.se is no longer an FTP mirror, gnunet, 2017/02/24