Fix os-locale format

This commit is contained in:
Bet4 2019-11-15 18:44:13 +08:00 committed by Benjamin Staneck
parent 4c70425b0c
commit 40d5491e95

View file

@ -90,7 +90,7 @@ module.exports = class Session extends EventEmitter {
{},
process.env,
{
LANG: osLocale.sync() + '.UTF-8',
LANG: osLocale.sync().replace(/-/, '_') + '.UTF-8',
TERM: 'xterm-256color',
COLORTERM: 'truecolor',
TERM_PROGRAM: productName,