Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 08585b8539a3159819212a46802edd707fe586e7..44345ca26d1b10480bafb0a43dd8d8eaa577eab4 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -1055,6 +1055,9 @@ config("default_warnings") { |
config("chromium_code") { |
if (is_win) { |
cflags = [ "/W4" ] # Warning level 4. |
+ |
+ # Assume UTF-8 by default to avoid code page dependencies. |
+ cflags += [ "/utf-8" ] |
} else { |
cflags = [ "-Wall" ] |
if (treat_warnings_as_errors) { |