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

Issue 1843843002: Use getdefaultlocale in fix_encoding (Closed)

Created:
4 years, 8 months ago by iannucci
Modified:
4 years, 8 months ago
Reviewers:
dnj, M-A Ruel
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M fix_encoding.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
iannucci
4 years, 8 months ago (2016-03-29 22:39:11 UTC) #1
iannucci
PTAL: getdefaultlocale seems to always return the POSIX-style name+encoding, which git 2.7.4 is happy with.
4 years, 8 months ago (2016-03-29 22:39:55 UTC) #2
dnj
lgtm
4 years, 8 months ago (2016-03-29 22:43:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843843002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843843002/1
4 years, 8 months ago (2016-03-29 22:44:15 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as http://src.chromium.org/viewvc/chrome?view=rev&revision=299547
4 years, 8 months ago (2016-03-29 22:46:32 UTC) #7
M-A Ruel
On 2016/03/29 22:46:32, commit-bot: I haz the power wrote: > Committed patchset #1 (id:1) as ...
4 years, 8 months ago (2016-03-30 15:49:16 UTC) #8
dnj
> I'm pretty there was a reason for this but I forget exactly. What was ...
4 years, 8 months ago (2016-03-30 15:51:51 UTC) #9
M-A Ruel
4 years, 8 months ago (2016-03-30 15:59:50 UTC) #10
Message was sent while issue was closed.
On 2016/03/30 15:51:51, dnj wrote:
> > I'm pretty there was a reason for this but I forget exactly. What was the
> > problem you are trying to solve? It helps on which OS?
> 
> This particular problem is b/c the new Git 2.7 environment loads its locale
from
> the "LC_ALL" variable exported to it from gclient, which is, in turn, derived
> from this. It was previously exporting a long-form locale file (e.g.,
something
> like "English_American.UTF-8"), which was not defined in the Git bash
> environment. However, the short form of the same locale is.
> 
> AFAICT the reason is that we want this is to compel UTF8 output instead of
> whatever the default charset is.

That should have been handled by subprocess2 get_english_env().
https://chromium.googlesource.com/chromium/tools/depot_tools/+/master/subproc...

Powered by Google App Engine
This is Rietveld 408576698