Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(775)

Unified Diff: build/config/compiler/BUILD.gn

Issue 2488853002: Enable /utf-8 on Windows (Closed)
Patch Set: utf8 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698