Last active
October 13, 2022 14:33
-
-
Save vizv/f0c1d2b6f07c99c27eba610ffd8384ce to your computer and use it in GitHub Desktop.
qt5-base QUrl keep uppercase fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD | |
index 49f6df5..fe212ec 100644 | |
--- a/trunk/PKGBUILD | |
+++ b/trunk/PKGBUILD | |
@@ -30,10 +30,12 @@ groups=('qt' 'qt5') | |
_pkgfqn=${pkgbase/5-/} | |
source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit | |
qmake-cflags.patch | |
- qmake-config.patch) | |
+ qmake-config.patch | |
+ qurl-keep-uppercase.patch) | |
sha256sums=('SKIP' | |
'5411edbe215c24b30448fac69bd0ba7c882f545e8cf05027b2b6e2227abc5e78' | |
- '4abc22150fa3e06b2fdcec32146abc9be4e316692aa4d5bd5aa53b4b726783fa') | |
+ '4abc22150fa3e06b2fdcec32146abc9be4e316692aa4d5bd5aa53b4b726783fa' | |
+ '589cd308609eede7f4f81fc8606b275ca9d6cd957e007433ee6e0b8d22f81390') | |
options=(debug) | |
pkgver() { | |
@@ -45,6 +47,7 @@ prepare() { | |
cd ${_pkgfqn} | |
patch -p1 < ../qmake-cflags.patch # Use system CFLAGS in qmake | |
patch -p1 < ../qmake-config.patch # Don't strip binaries with qmake and use -ltcg, cf. QTBUG-73834 | |
+ patch -p1 < ../qurl-keep-uppercase.patch # Keep uppercase hostname in QUrl, see https://bugs.kde.org/show_bug.cgi?id=429408 | |
} | |
build() { | |
diff --git a/trunk/qurl-keep-uppercase.patch b/trunk/qurl-keep-uppercase.patch | |
new file mode 100644 | |
index 0000000..284d105 | |
--- /dev/null | |
+++ b/trunk/qurl-keep-uppercase.patch | |
@@ -0,0 +1,13 @@ | |
+diff --git a/src/corelib/io/qurlidna.cpp b/src/corelib/io/qurlidna.cpp | |
+index a2f0caa606..9b8c3444dd 100644 | |
+--- a/src/corelib/io/qurlidna.cpp | |
++++ b/src/corelib/io/qurlidna.cpp | |
+@@ -2532,8 +2532,5 @@ QString qt_ACE_do(const QString &domain, AceOperation op, AceLeadingDot dot) | |
+ ushort uc = in->unicode(); | |
+ if (uc > 0x7f) | |
+ simple = false; | |
+- if (uc >= 'A' && uc <= 'Z') | |
+- *out = QChar(uc | 0x20); | |
+- else | |
+ *out = *in; | |
+ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment