fix(solc/resolver): default to Ascii for windows / Utf8 otherwise (#2060)
This commit is contained in:
parent
f2099a8eaa
commit
72e94f02dd
|
@ -5,9 +5,9 @@ use std::{collections::HashSet, io, io::Write, str::FromStr};
|
||||||
pub enum Charset {
|
pub enum Charset {
|
||||||
// when operating in a console on windows non-UTF-8 byte sequences are not supported on
|
// when operating in a console on windows non-UTF-8 byte sequences are not supported on
|
||||||
// stdout, See also [`StdoutLock`]
|
// stdout, See also [`StdoutLock`]
|
||||||
#[cfg_attr(target_os = "windows", default)]
|
|
||||||
Utf8,
|
|
||||||
#[cfg_attr(not(target_os = "windows"), default)]
|
#[cfg_attr(not(target_os = "windows"), default)]
|
||||||
|
Utf8,
|
||||||
|
#[cfg_attr(target_os = "windows", default)]
|
||||||
Ascii,
|
Ascii,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue