Explorar el Código

text-freetype2: Fix loading from files with unicode names

Richard Stanway hace 10 años
padre
commit
d1fbacd784
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      plugins/text-freetype2/text-functionality.c

+ 1 - 1
plugins/text-freetype2/text-functionality.c

@@ -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);