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

Issue 869673002: Make javac.py assume UTF-8 encoding always (Closed)

Created:
5 years, 11 months ago by eseidel
Modified:
5 years, 11 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org, qsr, Dirk Pranke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make javac.py assume UTF-8 encoding always My understanding is that by-default javac pulls encoding from the user's environment http://stackoverflow.com/questions/9661935/how-to-change-the-defaults-system-java-encode-form-in-windows http://stackoverflow.com/questions/11343828/file-encoding-has-no-effect-lc-all-environment-variable-does-it which is wrong for Chromium where all of our source files are known to be UTF-8, regardless of what the user has set in their environment. In my case I was using Chrome Remote Desktop to connect to my linux machine and for whatever reason LANG was missing from the resulting environment. After this patch mojo_shell builds correctly for Android again. BUG=419378 Committed: https://crrev.com/32170ad8a272b81d05ccce1d69473ca20d18a16e Cr-Commit-Position: refs/heads/master@{#313432}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M build/android/gyp/javac.py View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
eseidel
5 years, 11 months ago (2015-01-22 20:20:09 UTC) #2
eseidel
5 years, 11 months ago (2015-01-22 20:20:21 UTC) #3
jbudorick
+cjhopman
5 years, 11 months ago (2015-01-22 20:23:11 UTC) #5
cjhopman
+andrewhayden I just de-duped the bug against another one (https://crbug.com/419378) where andrew makes the argument ...
5 years, 11 months ago (2015-01-22 21:02:09 UTC) #7
eseidel
That's fine, but we'll need to fix this java file (and likely others) if we ...
5 years, 11 months ago (2015-01-22 21:12:35 UTC) #8
Andrew Hayden (chromium.org)
On 2015/01/22 21:12:35, eseidel wrote: > That's fine, but we'll need to fix this java ...
5 years, 11 months ago (2015-01-23 11:10:08 UTC) #9
eseidel1
Shrug. For what its worth the google style guide appears to assume utf8: http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Non-ASCII_Characters And ...
5 years, 11 months ago (2015-01-23 13:13:34 UTC) #11
eseidel1
I guess my point is if you'd like to change the rules for java files ...
5 years, 11 months ago (2015-01-23 13:15:03 UTC) #12
Andrew Hayden (chromium.org)
On 2015/01/23 13:15:03, eseidel1 wrote: > I guess my point is if you'd like to ...
5 years, 11 months ago (2015-01-23 13:18:54 UTC) #13
cjhopman
lgtm
5 years, 11 months ago (2015-01-28 00:43:26 UTC) #14
cjhopman
On 2015/01/28 00:43:26, cjhopman wrote: > lgtm I don't think we should deviate from the ...
5 years, 11 months ago (2015-01-28 00:45:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/869673002/1
5 years, 11 months ago (2015-01-28 00:50:56 UTC) #17
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 11 months ago (2015-01-28 04:13:16 UTC) #18
commit-bot: I haz the power
5 years, 11 months ago (2015-01-28 04:14:25 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/32170ad8a272b81d05ccce1d69473ca20d18a16e
Cr-Commit-Position: refs/heads/master@{#313432}

Powered by Google App Engine
This is Rietveld 408576698