summaryrefslogblamecommitdiff
path: root/user/qt5-qtbase/qt-musl-iconv-no-bom.patch
blob: 9df5d594d474f30036a40f757e5f5f6bf7b4984b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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
@@ -61,7 +61,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"