Skip to content

Commit

Permalink
SCDoc: Use "r" instead of "rb"
Browse files Browse the repository at this point in the history
"rb" causes some fuckups down the line with recognizing when newlines have
begin. Use "r" instead. I introduced this regression in an earlier commit.
  • Loading branch information
mossheim committed Jul 24, 2017
1 parent aa37c96 commit 5c7823d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SCDoc/SCDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ DocNode * scdoc_parse_file(const std::string& fn, int mode) {
// incoming fn is from QString.toStdString(), so it's UTF-8.
#ifdef _WIN32
const std::wstring fn_w = SC_Codecvt::utf8_cstr_to_utf16_wstring(fn.c_str());
fp = _wfopen(fn_w.c_str(), L"rb");
fp = _wfopen(fn_w.c_str(), L"r");
#else
fp = fopen(fn.c_str(), "r");
#endif // _WIN32
Expand Down

0 comments on commit 5c7823d

Please sign in to comment.