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

Ramiro Polla ramiro.polla
Thu Jul 16 19:22:48 CEST 2009


Hi,

On Thu, Jul 16, 2009 at 11:20 AM, Karl Blomster<thefluff at uppcon.com> wrote:
> Unless I am severely missing something in your updated patch (thanks for the
> nice work, by the way!) it will not work with the FFmpeg commandline
> program. If you want an Unicode commandline in Windows you need to use
> wmain() or _tmain() instead of plain old main(), AFAIK. As I said earlier my
> original patch was only intended to let the API support Unicode. Working it
> into ffmpeg.c would be a lot more work, I think.

How do you test UNICODE support?

I used attached shell file with msys (sh test_unicode.sh) and it works
as expected (only the unicode filename without FF_WINUTF8 fails). I
also tested with an app that used Find(First,Next)FileA() and passed
the unicode filenames as ascii string to ff_winutf8_open() and it also
worked as expected.

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_unicode.sh
Type: application/x-sh
Size: 286 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090716/abf7c062/attachment.sh>



More information about the ffmpeg-devel mailing list