Index: build/android/gyp/javac.py |
diff --git a/build/android/gyp/javac.py b/build/android/gyp/javac.py |
index 6a3024be33b4305832eed0a4d602f8f4becef499..15fe73db49827fed77692a61bd9aded108664d8d 100755 |
--- a/build/android/gyp/javac.py |
+++ b/build/android/gyp/javac.py |
@@ -72,6 +72,9 @@ def DoJavac( |
javac_args = [ |
'-g', |
+ # Chromium only allows UTF8 source files. Being explicit avoids |
+ # javac pulling a default encoding from the user's environment. |
+ '-encoding', 'UTF-8', |
'-source', '1.7', |
'-target', '1.7', |
'-classpath', ':'.join(classpath), |