mirror of
https://github.com/OlafvdSpek/ctemplate.git
synced 2025-09-28 19:05:49 +08:00
Always load files in binary mode, so \r isn't silently eaten on windows.
This commit is contained in:
parent
aabfe7bc61
commit
0b97bfccf0
|
@ -2645,7 +2645,7 @@ bool Template::ReloadIfChangedLocked()
|
||||||
return false; // file's timestamp hasn't changed, so no need to reload
|
return false; // file's timestamp hasn't changed, so no need to reload
|
||||||
}
|
}
|
||||||
|
|
||||||
File* fp = File::Open(resolved_filename_.c_str(), "rb");
|
File* fp = File::Open(resolved_filename_.c_str(), "r");
|
||||||
if (fp == NULL) {
|
if (fp == NULL) {
|
||||||
LOG(ERROR) << "Can't find file " << resolved_filename_
|
LOG(ERROR) << "Can't find file " << resolved_filename_
|
||||||
<< "; skipping" << endl;
|
<< "; skipping" << endl;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user