use wxLocale::GetSystemEncoding() to test whetehr we want to use UTF-8 in wxConvBrokenFileNames::UseUTF8()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9d27183802
commit
44d12026b8
@ -380,12 +380,7 @@ private:
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user