diff options
author | Péter Gál <pgal.u-szeged@partner.samsung.com> | 2018-06-11 21:38:35 +0200 |
---|---|---|
committer | yichoi <duddlf.choi@samsung.com> | 2018-06-12 04:38:35 +0900 |
commit | efa88507833f554bcf2dc1f901e3549529bb99da (patch) | |
tree | d0674004190a9b1e838e2ba893f69ee96232fad1 /jerry-core | |
parent | 9ae60a4910b9891759051dd281e0737fd4f7f23e (diff) |
Use binary mode when opening via fopen in the tools (#2371)
In the snapshot tool the files were opened
in text mode. However the snapshot files
are binary files thus it is advised to use the
binary mode when opening the files.
Specifying the binary mode is a must on Windows
platform otherwise the read/write operations
are inserting extra '\r' characters.
To make the tools consitent across OSes all
fopen are now opening files in binary mode.
Also update jerry-libc to accept the 'b'
modifier and add a test case where the JS
file uses CR-LF line endings.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
Diffstat (limited to 'jerry-core')
0 files changed, 0 insertions, 0 deletions