fix: enable UTF8 for nala

This commit is contained in:
Amin Yahyaabadi 2022-07-27 17:14:10 -07:00
parent 4e84885253
commit 71cdb28b79
5 changed files with 8 additions and 4 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/setup_cpp.mjs vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -59,6 +59,10 @@ function getApt() {
let apt: string
if (which.sync("nala", { nothrow: true }) !== null) {
apt = "nala"
// enable utf8 otherwise it fails because of the usage of ASCII encoding
process.env.LANG = "C.UTF-8"
process.env.LC_ALL = "C.UTF-8"
} else {
apt = "apt-get"
}