[FFmpeg-devel] [PATCH] Support for UTF8 filenames on Windows

Kalle Blomster thefluff
Sat Jun 20 23:56:37 CEST 2009


Hi.
Currently, ffmpeg on Windows does not support opening files whose names contain 
characters that cannot be expressed in the current locale, because on Windows 
you can't pass UTF8 in a char* to _open() and have it work. You have to convert 
the filename to UTF16 and use _wopen(), which takes a wchar_t instead.

I have attached a patch that attempts to solve the problem with a rather ugly 
hack. It Works For Me(tm) under mingw at least. Comments are appreciated.

Regards,
Karl Blomster
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ffmpeg_win_utf8_paths.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090620/535d8068/attachment.txt>



More information about the ffmpeg-devel mailing list