summaryrefslogtreecommitdiff
path: root/www/webkit2-gtk3/files/patch-Source_WTF_wtf_URLHelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/webkit2-gtk3/files/patch-Source_WTF_wtf_URLHelpers.cpp')
-rw-r--r--www/webkit2-gtk3/files/patch-Source_WTF_wtf_URLHelpers.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/www/webkit2-gtk3/files/patch-Source_WTF_wtf_URLHelpers.cpp b/www/webkit2-gtk3/files/patch-Source_WTF_wtf_URLHelpers.cpp
new file mode 100644
index 000000000000..ae3e8ffa3d1d
--- /dev/null
+++ b/www/webkit2-gtk3/files/patch-Source_WTF_wtf_URLHelpers.cpp
@@ -0,0 +1,24 @@
+Regressed by https://github.com/unicode-org/icu/commit/480bec3ea652
+
+Source/WTF/wtf/URLHelpers.cpp:301:39: error: expected ';' after do/while statement
+ U16_NEXT(buffer, i, length, c)
+ ^
+ ;
+Source/WTF/wtf/URLHelpers.cpp:303:52: error: use of undeclared identifier 'error'
+ UScriptCode script = uscript_getScript(c, &error);
+ ^
+Source/WTF/wtf/URLHelpers.cpp:304:13: error: use of undeclared identifier 'error'
+ if (error != U_ZERO_ERROR) {
+ ^
+
+--- Source/WTF/wtf/URLHelpers.cpp.orig 2019-08-26 14:55:44 UTC
++++ Source/WTF/wtf/URLHelpers.cpp
+@@ -298,7 +298,7 @@ static bool allCharactersInIDNScriptWhiteList(const UC
+ Optional<UChar32> previousCodePoint;
+ while (i < length) {
+ UChar32 c;
+- U16_NEXT(buffer, i, length, c)
++ U16_NEXT(buffer, i, length, c);
+ UErrorCode error = U_ZERO_ERROR;
+ UScriptCode script = uscript_getScript(c, &error);
+ if (error != U_ZERO_ERROR) {