gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 54/173: IDN: revert use of the transitional option


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 54/173: IDN: revert use of the transitional option
Date: Fri, 24 Feb 2017 14:01:16 +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 ee357664df9bbb301e3bc1070a855e6b13303a5d
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Jan 13 14:31:40 2017 +0100

    IDN: revert use of the transitional option
    
    It made the german ß get converted to ss, IDNA2003 style, and we can't
    have that for the .de TLD - a primary reason for our switch to IDNA2008.
    
    Test 165 verifies.
---
 lib/url.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/lib/url.c b/lib/url.c
index 9112baee0..b088b61e3 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4010,12 +4010,8 @@ static void fix_hostname(struct connectdata *conn, 
struct hostname *host)
 #ifdef USE_LIBIDN2
     if(idn2_check_version(IDN2_VERSION)) {
       char *ace_hostname = NULL;
-#if IDN2_VERSION_NUMBER >= 0x00140000
-      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);
+      int rc = idn2_lookup_ul((const char *)host->name, &ace_hostname,
+                              IDN2_NFC_INPUT);
       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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]