Skip to content

Commit 770456c

Browse files
fanc999-1kjellahl
authored andcommitted
meson.build: Enable /utf-8 for MSVC builds
This avoids warnings and mis-compilations on certain system locales when building on Visual Studio, in particular Chinese, Japanese and Korean versions of Windows.
1 parent f7584d0 commit 770456c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ add_project_arguments(warning_flags, language: 'cpp')
151151
# MSVC: Ignore warnings that aren't really harmful, but make those
152152
# that should not be overlooked stand out.
153153
if is_msvc
154-
foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/wd4530']
154+
foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/wd4530', '/utf-8']
155155
disabled_warning = cpp_compiler.get_supported_arguments(wd)
156156
add_project_arguments(disabled_warning, language: 'cpp')
157157
endforeach

0 commit comments

Comments
 (0)