From ae30933ed8cea5e7afd2097e5b088b22d286e533 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 17 Nov 2015 21:51:55 -0800 Subject: [PATCH] Open ZFS files using unicode-aware APIs. May help #8223. --- ext/native/file/zip_read.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/native/file/zip_read.cpp b/ext/native/file/zip_read.cpp index 76966127ad..4264b6e78e 100644 --- a/ext/native/file/zip_read.cpp +++ b/ext/native/file/zip_read.cpp @@ -39,7 +39,7 @@ uint8_t *ReadFromZip(zip *archive, const char* filename, size_t *size) { // The return is non-const because - why not? uint8_t *ReadLocalFile(const char *filename, size_t *size) { - FILE *file = fopen(filename, "rb"); + FILE *file = openCFile(filename, "rb"); if (!file) { *size = 0; return nullptr;