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:
Vadim Zeitlin
2017-04-01 19:12:27 +02:00
parent d145ef7205
commit e9ce55e000
4 changed files with 5 additions and 4 deletions

View File

@@ -234,7 +234,7 @@ wxDebugReport::~wxDebugReport()
if ( !m_dir.empty() )
{
if ( wxRmDir(m_dir.fn_str()) != 0 )
if ( wxRmDir(m_dir) != 0 )
{
wxLogSysError(_("Failed to clean up debug report directory \"%s\""),
m_dir.c_str());