Fix wxRmdir() with non-ASCII paths
Don't apply at best unnecessary, and actually harmful, as it uses a wrong conversion, fn_str() when calling wxRmDir() which takes wxString. Update unit tests to check that wxRmdir() now works with non-ASCII filenames too. Closes #17644.
This commit is contained in:
@@ -524,7 +524,7 @@ void FileFunctionsTestCase::PathOnly()
|
||||
// Rmdir fails on them on Linux. See ticket #17644.
|
||||
void FileFunctionsTestCase::Mkdir()
|
||||
{
|
||||
wxString dirname = wxT("__wxMkdir_test_dir");
|
||||
wxString dirname = wxString::FromUTF8("__wxMkdir_test_dir_with_\xc3\xb6");
|
||||
const std::string msg = wxString::Format("Dir: %s", dirname).ToStdString();
|
||||
CPPUNIT_ASSERT_MESSAGE( msg, wxMkdir(dirname) );
|
||||
CPPUNIT_ASSERT_MESSAGE( msg, wxDirExists(dirname) );
|
||||
@@ -533,7 +533,7 @@ void FileFunctionsTestCase::Mkdir()
|
||||
|
||||
void FileFunctionsTestCase::Rmdir()
|
||||
{
|
||||
wxString dirname = wxT("__wxRmdir_test_dir");
|
||||
wxString dirname = wxString::FromUTF8("__wxRmdir_test_dir_with_\xc3\xb6");
|
||||
const std::string msg = wxString::Format("Dir: %s", dirname).ToStdString();
|
||||
|
||||
CPPUNIT_ASSERT_MESSAGE( msg, wxMkdir(dirname) );
|
||||
|
Reference in New Issue
Block a user