workaround #9225
This commit is contained in:
parent
1de45560f1
commit
2fc83dbb7b
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue