Drop _IRR_WCHAR_FILESYSTEM

never used and never worked for us.
This commit is contained in:
sfan5
2021-08-30 20:44:51 +02:00
parent 2dc2846c3f
commit 75b4c05741
7 changed files with 0 additions and 105 deletions

View File

@ -5,8 +5,6 @@
#include "CGUIFileOpenDialog.h"
#ifdef _IRR_COMPILE_WITH_GUI_
#include <locale.h>
#include "IGUISkin.h"
#include "IGUIEnvironment.h"
#include "IVideoDriver.h"
@ -382,14 +380,7 @@ void CGUIFileOpenDialog::deserializeAttributes(io::IAttributes* in, io::SAttribu
void CGUIFileOpenDialog::pathToStringW(irr::core::stringw& result, const irr::io::path& p)
{
#ifndef _IRR_WCHAR_FILESYSTEM
char* oldLocale = setlocale(LC_CTYPE, NULL);
setlocale(LC_CTYPE,""); // multibyteToWString is affected by LC_CTYPE. Filenames seem to need the system-locale.
core::multibyteToWString(result, p);
setlocale(LC_CTYPE, oldLocale);
#else
result = p.c_str();
#endif
}
//! fills the listbox with files.