text-freetype2: Fix loading from files with unicode names

This commit is contained in:
Richard Stanway
2015-10-08 00:57:06 +02:00
parent 74e4c33756
commit d1fbacd784

View File

@@ -346,7 +346,7 @@ void load_text_from_file(struct ft2_source *srcdata, const char *filename)
uint16_t header = 0;
size_t bytes_read;
tmp_file = fopen(filename, "rb");
tmp_file = os_fopen(filename, "rb");
if (tmp_file == NULL) {
if (!srcdata->file_load_failed) {
blog(LOG_WARNING, "Failed to open file %s", filename);