]> git.videolan.org Git - x264.git/commit
Windows Unicode support
authorHenrik Gramner <henrik@gramner.com>
Sun, 11 Aug 2013 17:50:42 +0000 (19:50 +0200)
committerJason Garrett-Glaser <jason@x264.com>
Fri, 23 Aug 2013 21:04:14 +0000 (14:04 -0700)
commita1d3d17239e94a82ab261a071384295406bd8587
tree49a98a19b778cd2be23d6301602a4eab5d250710
parent3155f69090354bcb63479d6f8875c55bb8b3f783
Windows Unicode support

Windows, unlike most other operating systems, uses UTF-16 for Unicode strings while x264 is designed for UTF-8.

This patch does the following in order to handle things like Unicode filenames:
* Keep strings internally as UTF-8.
* Retrieve the CLI command line as UTF-16 and convert it to UTF-8.
* Always use Unicode versions of Windows API functions and convert strings to UTF-16 when calling them.
* Attempt to use legacy 8.3 short filenames for external libraries without Unicode support.
22 files changed:
common/common.c
common/opencl.c
common/osdep.c
common/osdep.h
common/win32thread.c
common/win32thread.h
configure
encoder/encoder.c
encoder/ratecontrol.c
input/avs.c
input/ffms.c
input/raw.c
input/timecode.c
input/y4m.c
output/flv_bytestream.c
output/matroska_ebml.c
output/mp4.c
output/raw.c
x264.c
x264.h
x264cli.h
x264res.rc