From 62a91785046cfc486253aad8002c791ddf1a477f Mon Sep 17 00:00:00 2001 From: Krzysztof Sommerfeld Date: Thu, 20 Jul 2023 21:42:36 +0200 Subject: [PATCH] Add case for VxWorks platform in initLocale method Change-Id: Ic0cef59d452c72340f6216c9ae3c261a24c2d296 Reviewed-by: Thiago Macieira --- src/corelib/kernel/qcoreapplication.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index c8c3d7fe94..dbd71866c3 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -622,6 +622,8 @@ void QCoreApplicationPrivate::initLocale() # elif defined(Q_OS_ANDROID) && __ANDROID_API__ < __ANDROID_API_O__ // Android 6 still lacks nl_langinfo(), so we can't check. // FIXME: Shouldn't we still setlocale("UTF-8")? +# elif defined(Q_OS_VXWORKS) + // VxWorks has no nl_langinfo, so we can't check. # else // std::string's SSO usually saves this the need to allocate: const std::string oldEncoding = nl_langinfo(CODESET);