https://bugs.webkit.org/show_bug.cgi?id=148917
Should load the script files with the binary mode.
Since these loading functions are only used for the simple test scripts,
we just use ftell / fseek now.
* jsc.cpp:
(fillBufferWithContentsOfFile):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189591
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-09-10 Yusuke Suzuki <utatane.tea@gmail.com>
+
+ Unreviewed, fix Windows file loading in JSC shell after r189583
+ https://bugs.webkit.org/show_bug.cgi?id=148917
+
+ Should load the script files with the binary mode.
+ Since these loading functions are only used for the simple test scripts,
+ we just use ftell / fseek now.
+
+ * jsc.cpp:
+ (fillBufferWithContentsOfFile):
+
2015-09-10 Michael Saboff <msaboff@apple.com>
REGRESSION(r189575): Appears to break ARM64 linux builds
static bool fillBufferWithContentsOfFile(const String& fileName, Vector<char>& buffer)
{
- FILE* f = fopen(fileName.utf8().data(), "r");
+ FILE* f = fopen(fileName.utf8().data(), "rb");
if (!f) {
fprintf(stderr, "Could not open file: %s\n", fileName.utf8().data());
return false;