27#ifndef FFTOOLS_FOPEN_UTF8_H
28#define FFTOOLS_FOPEN_UTF8_H
38#include "libavutil/wchar_filename.h"
40static inline FILE *
fopen_utf8(
const char *path_utf8,
const char *mode)
42 wchar_t *path_w, *mode_w;
46 if (get_extended_win32_path(path_utf8, &path_w))
51 if (utf8towchar(mode, &mode_w))
61 f = _wfopen(path_w, mode_w);
68 return fopen(path_utf8, mode);
73static inline FILE *
fopen_utf8(
const char *path,
const char *mode)
75 return fopen(path, mode);