[FFmpeg-devel] [PATCH 2/2] configure: instruct MSVC 2015 to properly process UTF-8 string literals
h.leppkes at gmail.com
Fri Feb 3 10:41:54 EET 2017
Without the /UTF-8 switch, the MSVC compiler treats all files as in the
system codepage, instead of in UTF-8, which causes UTF-8 string literals
to be interpreted wrong.
This switch was only introduced in VS2015 Update 2, and any earlier
versions do not have an equivalent solution.
Fixes fate-sub-scc on MSVC 2015+
configure | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configure b/configure
index d3d652f0f4..231cc3eca7 100755
@@ -6327,6 +6327,9 @@ EOF
# Issue has been fixed in MSVC v19.00.24218.
check_cpp_condition windows.h "_MSC_FULL_VER >= 190024218" ||
+ # enable utf-8 source processing on VS2015 U2 and newer
+ check_cpp_condition windows.h "_MSC_FULL_VER >= 190023918" &&
+ add_cflags -utf-8
for pfx in "" host_; do
More information about the ffmpeg-devel