提交 2fc83dbb 编写于 作者: B Benjamin Pasero

workaround #9225

上级 1de45560
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册