[json-glib: 1/2] meson: Don't error with MSVC C4819 warning
- From: Nirbheek Chauhan <nirbheekc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib: 1/2] meson: Don't error with MSVC C4819 warning
- Date: Fri, 15 Nov 2019 14:11:09 +0000 (UTC)
commit 90a659a22280e8a2dcf4a9330dfbaa182cb6f256
Author: Seungha Yang <seungha yang navercorp com>
Date: Thu Nov 14 12:12:11 2019 +0900
meson: Don't error with MSVC C4819 warning
The compiler warning C4819 (encoding related warning) is a trivial
thing on non-English locale system. Instead of error out,
explicitly specify encoding as "utf-8".
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 69c3896..f84d865 100644
--- a/meson.build
+++ b/meson.build
@@ -74,7 +74,7 @@ if cc.get_id() == 'msvc'
'-we4049', # terminating line number emission
'-we4053', # an expression of type void was used as an operand
'-we4071', # no function prototype given
- '-we4819', # the file contains a character that cannot be represented in the current code page
+ '/utf-8', # Set the input and exec encoding to utf-8
]
elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
test_cflags = [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]