fix: add UTF-8 to the env if nala is used

This commit is contained in:
Amin Yahyaabadi 2022-07-27 17:22:43 -07:00
parent 71cdb28b79
commit e4001f3bb1
5 changed files with 7 additions and 7 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

@ -4,7 +4,7 @@ import { execSudo } from "../exec/sudo"
import { info } from "@actions/core" import { info } from "@actions/core"
import { warning } from "../io/io" import { warning } from "../io/io"
import { isGitHubCI } from "../env/isCI" import { isGitHubCI } from "../env/isCI"
import { cpprc_path, setupCppInProfile } from "../env/addEnv" import { addEnv, cpprc_path, setupCppInProfile } from "../env/addEnv"
import { appendFileSync } from "fs" import { appendFileSync } from "fs"
import which from "which" import which from "which"
@ -61,8 +61,8 @@ function getApt() {
apt = "nala" apt = "nala"
// enable utf8 otherwise it fails because of the usage of ASCII encoding // enable utf8 otherwise it fails because of the usage of ASCII encoding
process.env.LANG = "C.UTF-8" addEnv("LANG", "C.UTF-8")
process.env.LC_ALL = "C.UTF-8" addEnv("LC_ALL", "C.UTF-8")
} else { } else {
apt = "apt-get" apt = "apt-get"
} }