Attempting to read the style-sheet.jsons as text fails on Windows, due to the
garbage which the CRLF conversion - performed by the OS - appears to create
at the end of the file.
N.B. the binary specifier to fopen() has no effect on POSIX systems. (source:
https://en.cppreference.com/w/c/io/fopen )
Change-Id: Ibf96d9194ed7d1953b35248c5044136b5fb01497
Signed-off-by: György Straub <g.straub@partner.samsung.com>
std::streampos bufferSize = 0;
Dali::Vector<char> fileBuffer;
- if( Dali::FileLoader::ReadFile( filename, bufferSize, fileBuffer, FileLoader::FileType::TEXT ) )
+ if( Dali::FileLoader::ReadFile( filename, bufferSize, fileBuffer, FileLoader::FileType::BINARY ) )
{
output.assign( &fileBuffer[0], bufferSize );
retval = true;