From 77e2a6c4589dcedb61789beefb1605ba2c0f1aff Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 13 Mar 2017 09:35:12 -0400 Subject: Add utf-8 flag to win build. Tell VC++ that the pdfium source files are encoded in UTF-8 so that it doesn't interpret them as being encoded in the local code page. Change-Id: Ide74061cad523a873ffa5630781dfc47bf7ae79c Reviewed-on: https://pdfium-review.googlesource.com/2961 Commit-Queue: dsinclair Reviewed-by: Bruce Dawson --- BUILD.gn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index ecac406fff..be35522321 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -59,6 +59,11 @@ config("pdfium_common_config") { ] ldflags += [ "--coverage" ] } + + if (is_win) { + # Assume UTF-8 by default to avoid code page dependencies. + cflags += [ "/utf-8" ] + } } config("pdfium_core_config") { -- cgit v1.2.3