summaryrefslogtreecommitdiff
path: root/user/qt5-qtbase/qt-musl-iconv-no-bom.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/qt5-qtbase/qt-musl-iconv-no-bom.patch')
-rw-r--r--user/qt5-qtbase/qt-musl-iconv-no-bom.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/qt5-qtbase/qt-musl-iconv-no-bom.patch b/user/qt5-qtbase/qt-musl-iconv-no-bom.patch
new file mode 100644
index 000000000..8bf35ec1e
--- /dev/null
+++ b/user/qt5-qtbase/qt-musl-iconv-no-bom.patch
@@ -0,0 +1,11 @@
+--- qtbase/src/corelib/codecs/qiconvcodec.cpp 2017-01-18 15:20:58.000000000 +0100
++++ qtbase/src/corelib/codecs/qiconvcodec.cpp 2017-02-21 14:33:32.423808603 +0100
+@@ -64,7 +64,7 @@
+ #elif defined(Q_OS_AIX)
+ # define NO_BOM
+ # define UTF16 "UCS-2"
+-#elif defined(Q_OS_FREEBSD)
++#elif defined(Q_OS_FREEBSD) || (defined(Q_OS_LINUX) && !defined(__GLIBC__))
+ # define NO_BOM
+ # if Q_BYTE_ORDER == Q_BIG_ENDIAN
+ # define UTF16 "UTF-16BE"