]> git.sesse.net Git - x264/commit
Windows Unicode support
authorHenrik Gramner <henrik@gramner.com>
Sun, 11 Aug 2013 17:50:42 +0000 (19:50 +0200)
committerFiona Glaser <fiona@x264.com>
Fri, 23 Aug 2013 21:04:14 +0000 (14:04 -0700)
commitfa3cac516cb71b8ece09cedbfd0ce631ca8a2a4c
treeb3d30336c7698439d1e6f4f95bcf37e42f64bac0
parent9b94896b3735052cabb52d081de3b50020a077cb
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