From 2fc83dbb7be313c3fa65b530866f0a34a94af85c Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Wed, 19 Apr 2017 10:37:56 +0200 Subject: [PATCH] workaround #9225 --- src/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.js b/src/main.js index 9e9e2afa4f6..3a94685f532 100644 --- a/src/main.js +++ b/src/main.js @@ -12,6 +12,12 @@ if (process.argv.indexOf('--prof-startup') >= 0) { profiler.startProfiling('main', true); } +// Workaround for https://github.com/electron/electron/issues/9225. Chrome has an issue where +// in certain locales (e.g. PL), image metrics are wrongly computed. We explicitly set the +// LC_NUMERIC to prevent this from happening (selects the numeric formatting category of the +// C locale, http://en.cppreference.com/w/cpp/locale/LC_categories). +process.env.LC_NUMERIC = 'C'; + // Perf measurements global.perfStartTime = Date.now();