Skip to content

Commit 75119d0

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 d52b838 commit 75119d0

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy