* See the COPYING file in the top-level directory.
*/
+#include <compat/fopen_utf8.h>
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int i, ret;
FILE *f;
- f = fopen(cd_fname, "rb");
+ f = fopen_utf8(cd_fname, "rb");
if (f == NULL) {
err("missing file: %s: ", cd_fname);
perror(NULL);
return -1;
}
- f = fopen(table_fname, "rb");
+ f = fopen_utf8(table_fname, "rb");
if (f == NULL) {
err("missing file: %s: ", table_fname);
perror(NULL);
break;
}
- cd_file = fopen(cd_fname, "rb");
+ cd_file = fopen_utf8(cd_fname, "rb");
if (cd_file == NULL) {
err("failed to open: %s: ", table_fname);
perror(NULL);