Skip to content

Commit

Permalink
fix(solc/resolver): default to Ascii for windows / Utf8 otherwise (#2060
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gakonst committed Jan 17, 2023
1 parent f2099a8 commit 72e94f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethers-solc/src/resolver/tree.rs
Expand Up @@ -5,9 +5,9 @@ use std::{collections::HashSet, io, io::Write, str::FromStr};
pub enum Charset {
// when operating in a console on windows non-UTF-8 byte sequences are not supported on
// stdout, See also [`StdoutLock`]
#[cfg_attr(target_os = "windows", default)]
Utf8,
#[cfg_attr(not(target_os = "windows"), default)]
Utf8,
#[cfg_attr(target_os = "windows", default)]
Ascii,
}

Expand Down

0 comments on commit 72e94f0

Please sign in to comment.