Skip to content

Commit e4001f3

Browse files
committed
fix: add UTF-8 to the env if nala is used
1 parent 71cdb28 commit e4001f3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { execSudo } from "../exec/sudo"
44
import { info } from "@actions/core"
55
import { warning } from "../io/io"
66
import { isGitHubCI } from "../env/isCI"
7-
import { cpprc_path, setupCppInProfile } from "../env/addEnv"
7+
import { addEnv, cpprc_path, setupCppInProfile } from "../env/addEnv"
88
import { appendFileSync } from "fs"
99
import which from "which"
1010

@@ -61,8 +61,8 @@ function getApt() {
6161
apt = "nala"
6262

6363
// 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"
64+
addEnv("LANG", "C.UTF-8")
65+
addEnv("LC_ALL", "C.UTF-8")
6666
} else {
6767
apt = "apt-get"
6868
}

0 commit comments

Comments
 (0)