use binary ifstream in cParser

This commit is contained in:
milek7
2019-08-21 20:23:07 +02:00
parent c4d2c04363
commit d961cb17a2

View File

@@ -35,7 +35,7 @@ cParser::cParser( std::string const &Stream, buffertype const Type, std::string
switch (Type) {
case buffer_FILE: {
Path.append( Stream );
mStream = std::make_shared<std::ifstream>( Path );
mStream = std::make_shared<std::ifstream>( Path, std::ios_base::binary );
// content of *.inc files is potentially grouped together
if( ( Stream.size() >= 4 )
&& ( ToLower( Stream.substr( Stream.size() - 4 ) ) == ".inc" ) ) {