Fix: Dali::Internal::StyleMonitor::LoadThemeFile() opens files as binary. 11/223211/3
authorGyörgy Straub <g.straub@partner.samsung.com>
Mon, 27 Jan 2020 09:53:14 +0000 (09:53 +0000)
committerGyörgy Straub <g.straub@partner.samsung.com>
Mon, 27 Jan 2020 10:41:08 +0000 (10:41 +0000)
commitc6a31cb1d38fe7731b24f7c5b41a84bcbd6841b6
tree9295b40ccb4df1c9052d8878008c4154a2c5224a
parente34085952b385dfebf5a66eda553216f32aa7153
Fix: Dali::Internal::StyleMonitor::LoadThemeFile() opens files as binary.

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>
dali/internal/styling/common/style-monitor-impl.cpp