mirror of https://github.com/aminya/setup-cpp
fix: enable UTF8 for nala
This commit is contained in:
parent
4e84885253
commit
71cdb28b79
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
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue