meson/MSVC builds: Use -utf-8 where available
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 15 Jan 2020 07:27:59 +0000 (15:27 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 3 Feb 2020 09:55:09 +0000 (17:55 +0800)
commitf8d3845b1a06036c3c85b4a52d119567432349fe
tree0682c1b92fd5eaf88c1a0c7f61acfd90278649c9
parent69ed4c90e5ef9302304dbdce796f899b8b43c703
meson/MSVC builds: Use -utf-8 where available

This avoids the build from erroring out on C4819 (Unicode handling issue in
Visual Studio compiler), notably when running on Chinese, Japanese and
Korean locales.

Also apply -D_USE_MATH_DEFINES, -FImsvc_recommended_pragmas.h and -utf-8 to
the C++ compiler options as well.
meson.build