This commit is contained in:
Benjamin Pasero 2017-04-19 10:37:56 +02:00
parent 1de45560f1
commit 2fc83dbb7b

View file

@ -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();