Open std::fstream in a unicode-safe manner.

This commit is contained in:
Jordan Woyak
2013-02-28 19:33:39 -06:00
parent 95558cdc69
commit dea1e2827d
19 changed files with 57 additions and 25 deletions

View File

@ -285,7 +285,8 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
if (!path.IsEmpty())
{
std::ifstream f(WxStrToStr(path).c_str());
std::ifstream f;
OpenFStream(f, WxStrToStr(path), std::ios_base::in);
std::string line;
while (std::getline(f, line))