mirror of https://github.com/aminya/setup-cpp
fix: add UTF-8 to the env if nala is used
This commit is contained in:
parent
71cdb28b79
commit
e4001f3bb1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue