aboutsummaryrefslogtreecommitdiffstats
path: root/main/qt/qt-musl-iconv-no-bom.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-19 10:49:22 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-19 10:49:22 +0000
commit07afabd97d3916116b0f9373199f1963dc63a1b8 (patch)
treed3271f492bd66da63fc635b41c0d800617d8b490 /main/qt/qt-musl-iconv-no-bom.patch
parentc8fe1d6239a5ee0347e7a5556b12f1848d293afc (diff)
downloadaports-07afabd97d3916116b0f9373199f1963dc63a1b8.tar.bz2
aports-07afabd97d3916116b0f9373199f1963dc63a1b8.tar.xz
main/qt: fix iconv for musl
musl does not currently support BOM, so patch the iconv to not use it.
Diffstat (limited to 'main/qt/qt-musl-iconv-no-bom.patch')
-rw-r--r--main/qt/qt-musl-iconv-no-bom.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/qt/qt-musl-iconv-no-bom.patch b/main/qt/qt-musl-iconv-no-bom.patch
new file mode 100644
index 0000000000..35380ad671
--- /dev/null
+++ b/main/qt/qt-musl-iconv-no-bom.patch
@@ -0,0 +1,11 @@
+--- qt-everywhere-opensource-src-4.8.5/src/corelib/codecs/qiconvcodec.cpp.orig
++++ qt-everywhere-opensource-src-4.8.5/src/corelib/codecs/qiconvcodec.cpp
+@@ -62,7 +62,7 @@
+ #elif defined(Q_OS_AIX)
+ # define NO_BOM
+ # define UTF16 "UCS-2"
+-#elif defined(Q_OS_FREEBSD) || defined(Q_OS_MAC)
++#elif defined(Q_OS_FREEBSD) || defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && !defined(__GLIBC__))
+ # define NO_BOM
+ # if Q_BYTE_ORDER == Q_BIG_ENDIAN
+ # define UTF16 "UTF-16BE"