Ticket #3498: t3498_escape_oos_path_v1.patch

File t3498_escape_oos_path_v1.patch, 872 bytes (added by elexis, 9 years ago)

Adds the missing escape.

  • source/network/NetTurnManager.cpp

    void CNetTurnManager::DisplayOOSError(u3  
    257257        msg << "\n\n" << "The current game state is different from the original game state.";
    258258    else
    259259        msg << "\n\n" << "Your game state is " << (expectedHash == hash ? "identical to" : "different from") << " the hosts game state.";
    260260
    261261    if (path)
    262         msg << "\n\n" << "Dumping current state to " << utf8_from_wstring(OsPath(*path).string());
     262        msg << "\n\n" << "Dumping current state to " << CStr(utf8_from_wstring(OsPath(*path).string())).EscapeToPrintableASCII();
    263263
    264264    LOGERROR("%s", msg.str());
    265265
    266266    if (g_GUI)
    267267        g_GUI->DisplayMessageBox(600, 350, L"Sync error", wstring_from_utf8(msg.str()));