[epiphany] uri-helpers: Switch to nontransitional IDN2008



commit ef4f136ee77e8b3e3ec79b60592997271fa28ef2
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Fri Aug 25 12:26:46 2017 -0500

    uri-helpers: Switch to nontransitional IDN2008
    
    WebKit has made the switch, so we should too.

 lib/ephy-uri-helpers.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/lib/ephy-uri-helpers.c b/lib/ephy-uri-helpers.c
index be3ef44..d18c4a3 100644
--- a/lib/ephy-uri-helpers.c
+++ b/lib/ephy-uri-helpers.c
@@ -278,7 +278,9 @@ ephy_uri_decode (const char *uri_string)
   /* This object is threadsafe to *use*, but need to create it exactly once. */
   g_mutex_lock (&idna_creation_mutex);
   if (idna == NULL) {
-    idna = uidna_openUTS46 (UIDNA_DEFAULT, &error);
+    /* These flags should be synced with URLParser::internationalDomainNameTranscoder
+     * in WebKit's URLParser.cpp. */
+    idna = uidna_openUTS46 (UIDNA_CHECK_BIDI | UIDNA_CHECK_CONTEXTJ | UIDNA_NONTRANSITIONAL_TO_UNICODE | 
UIDNA_NONTRANSITIONAL_TO_ASCII, &error);
     if (U_FAILURE (error))
       g_error ("ICU error opening UTS #46 context: %d", error);
   }


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