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

Issue 6347045: linux: set LC_NUMERIC to C for all non-browser processes (Closed)

Created:
9 years, 10 months ago by Evan Martin
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

linux: set LC_NUMERIC to C for all non-browser processes In languages where comma is a decimal separator, printf() will obey the locale. This makes all sorts of things break (see bugs). We can sidestep these bugs by adjusting the locale early on. BUG=22782, 39964 TEST=tried the test steps in r21586 (verifying a Japanese filename uploaded), as well as tested a webm video in a German locale Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=73225

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -8 lines) Patch
M chrome/app/chrome_main.cc View 1 chunk +11 lines, -0 lines 1 comment Download
M chrome/browser/zygote_main_linux.cc View 1 chunk +0 lines, -8 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Evan Martin
http://codereview.chromium.org/6347045/diff/1/chrome/browser/zygote_main_linux.cc File chrome/browser/zygote_main_linux.cc (left): http://codereview.chromium.org/6347045/diff/1/chrome/browser/zygote_main_linux.cc#oldcode593 chrome/browser/zygote_main_linux.cc:593: // called before the sandbox is triggered. It's possible ...
9 years, 10 months ago (2011-01-31 22:51:37 UTC) #1
piman
http://codereview.chromium.org/6347045/diff/1/chrome/app/chrome_main.cc File chrome/app/chrome_main.cc (right): http://codereview.chromium.org/6347045/diff/1/chrome/app/chrome_main.cc#newcode384 chrome/app/chrome_main.cc:384: setlocale(LC_NUMERIC, "C"); I'm not sure setting it for plugins ...
9 years, 10 months ago (2011-01-31 23:11:01 UTC) #2
Evan Martin
On 2011/01/31 23:11:01, piman wrote: > http://codereview.chromium.org/6347045/diff/1/chrome/app/chrome_main.cc#newcode384 > chrome/app/chrome_main.cc:384: setlocale(LC_NUMERIC, "C"); > I'm not sure ...
9 years, 10 months ago (2011-01-31 23:12:18 UTC) #3
piman
On Mon, Jan 31, 2011 at 3:12 PM, <evan@chromium.org> wrote: > On 2011/01/31 23:11:01, piman ...
9 years, 10 months ago (2011-01-31 23:24:34 UTC) #4
awong
9 years, 10 months ago (2011-01-31 23:38:33 UTC) #5
LGTM

(this still feels scary, but not sure if there's a better solution)

Powered by Google App Engine
This is Rietveld 408576698