Fixes wrong iconv_open call under QNX
The wrong macro logic was causing iconv_open to never be called under QNX. Change-Id: I3367872fc8440f87fb59667770acd06262aef723 Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com> Reviewed-by: Mark Brand <mabrand@mabrand.nl> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>bb10
parent
65ebf592ba
commit
8a15c41d36
|
|
@ -465,7 +465,7 @@ iconv_t QIconvCodec::createIconv_t(const char *to, const char *from)
|
|||
Q_ASSERT((to == 0 && from != 0) || (to != 0 && from == 0));
|
||||
|
||||
iconv_t cd = (iconv_t) -1;
|
||||
#if defined(__GLIBC__) || defined(GNU_LIBICONV)
|
||||
#if defined(__GLIBC__) || defined(GNU_LIBICONV) || defined(Q_OS_QNX)
|
||||
#if defined(Q_OS_QNX)
|
||||
// on QNX the default locale is UTF-8, and an empty string will cause iconv_open to fail
|
||||
static const char empty_codeset[] = "UTF-8";
|
||||
|
|
|
|||
Loading…
Reference in New Issue