git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33112
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxConvBrokenFileNames::UseUTF8() const
{
-#if defined HAVE_LANGINFO_H && defined CODESET
- char *codeset = nl_langinfo(CODESET);
- return strcmp(codeset, "UTF-8") == 0;
-#else
- return false;
-#endif
+ return wxLocale::GetSystemEncoding() == wxFONTENCODING_UTF8;
}
size_t wxConvBrokenFileNames::MB2WC(wchar_t *outputBuf, const char *psz, size_t outputSize) const