Add case for VxWorks platform in initLocale method

Change-Id: Ic0cef59d452c72340f6216c9ae3c261a24c2d296
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Krzysztof Sommerfeld 2023-07-20 21:42:36 +02:00
parent c2310f8e03
commit 62a9178504

View File

@ -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);