fix(solc/resolver): default to Ascii for windows / Utf8 otherwise (#2060)

This commit is contained in:
Georgios Konstantopoulos 2023-01-16 18:14:38 -08:00 committed by GitHub
parent f2099a8eaa
commit 72e94f02dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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,
} }