Skip to content

Commit 71cdb28

Browse files
committed
fix: enable UTF8 for nala
1 parent 4e84885 commit 71cdb28

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/setup_cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/utils/setup/setupAptPack.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ function getApt() {
5959
let apt: string
6060
if (which.sync("nala", { nothrow: true }) !== null) {
6161
apt = "nala"
62+
63+
// enable utf8 otherwise it fails because of the usage of ASCII encoding
64+
process.env.LANG = "C.UTF-8"
65+
process.env.LC_ALL = "C.UTF-8"
6266
} else {
6367
apt = "apt-get"
6468
}

0 commit comments

Comments
 (0)