mpv/sub
wm4 a1244111a7 windows support: unicode filenames
Windows uses a legacy codepage for char* / runtime functions accepting
char *. Using UTF-8 as the codepage with setlocale() is explicitly
forbidden.

Work this around by overriding the MSVCRT functions with wrapper
macros, that assume UTF-8 and use "proper" API calls like _wopen etc.
to deal with unicode filenames. All code that uses standard functions
that take or return filenames must now include osdep/io.h. stat()
can't be overridden, because MinGW-w64 itself defines "stat" as a
macro. Change code to use use mp_stat() instead.

This is not perfectly clean, but still somewhat sane, and much better
than littering the rest of the mplayer code with MinGW specific hacks.
It's also a bit fragile, but that's actually little different from the
previous situation. Also, MinGW is unlikely to ever include a nice way
of dealing with this.
2012-03-09 20:48:54 +02:00
..
ass_mp.c options: move libass-related options to struct 2011-09-03 14:26:14 +03:00
ass_mp.h options: move libass-related options to struct 2011-09-03 14:26:14 +03:00
av_sub.c Update Libav API uses 2012-02-01 22:46:27 +02:00
av_sub.h
dec_sub.c
dec_sub.h
find_sub.c
find_subfiles.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
find_subfiles.h subs: options: add -sub-paths 2011-04-20 04:22:52 +03:00
font_load.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
font_load.h
font_load_ft.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
osd_font.h
sd.h
sd_ass.c sd_ass.c: set event->Style to fix --ass-styles 2011-09-23 13:57:11 +03:00
spudec.c build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
spudec.h
sub.c core: allocate OSD text buffers dynamically 2011-08-09 03:28:58 +03:00
sub.h core, vo: modify OSD redraw architecture, support EOSD 2011-12-06 05:03:39 +02:00
sub_cc.c
sub_cc.h
subassconvert.c subassconvert: handle "\r\n" line ends 2011-09-02 12:22:15 +03:00
subassconvert.h
subreader.c subreader.c: don't run FriBiDi code if using libass 2011-09-23 14:43:53 +03:00
subreader.h find_subfiles: move sub_filenames() here 2011-04-20 04:22:52 +03:00
unrar_exec.c
unrar_exec.h
vobsub.c cleanup: Silence compilation warnings on MinGW-w64 2012-03-01 00:22:30 +02:00
vobsub.h options: change -alang and -slang to use string list type 2011-04-20 04:22:42 +03:00