From e6b274e402094a67a9febc51c5de5d3f22ee8be4 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Tue, 3 Jan 2017 17:09:59 -0500 Subject: [PATCH] Specify "/utf-8" with Visual C++. This sets the source and executable character set to utf-8. This avoids issues with local code pages and avoids adding an unwanted BOM. Change-Id: If854c0001c2363f3262d20e28dce30c1e733536a Reviewed-on: https://skia-review.googlesource.com/6547 Commit-Queue: Ben Wagner Commit-Queue: Mike Klein Reviewed-by: Mike Klein --- gn/BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/gn/BUILD.gn b/gn/BUILD.gn index ef01130b67..3b50286d21 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -67,6 +67,7 @@ config("default") { "/FS", # Preserve previous PDB behavior. "/bigobj", # Some of our files are bigger than the regular limits. "/WX", # Treat warnings as errors. + "/utf-8", # Set Source and Executable character sets to UTF-8. ] defines += [ "_CRT_SECURE_NO_WARNINGS", # Disables warnings about sscanf().