From 69ad6af83c48b9a06fb2d47df8fc342234eb5c8e Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 24 Nov 2018 19:13:28 +0900 Subject: [PATCH] meson: Specify encoding to UTF-8 when building with MSVC Use build arguments consistent with core and -base. This can also remove noisy "C4819" warning of non-us locale MSVC. --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 2160708..6d57205 100644 --- a/meson.build +++ b/meson.build @@ -40,6 +40,7 @@ if cc.get_id() == 'msvc' '/wd4146', # unary minus on unsigned (beware INT_MIN) '/wd4244', # lossy type conversion (e.g. double -> int) '/wd4305', # truncating type conversion (e.g. double -> float) + cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8 language : 'c') # Disable SAFESEH with MSVC for plugins and libs that use external deps that # are built with MinGW -- 2.7.4