Skip to content

Commit

Permalink
os: add device_encoding to wasi
Browse files Browse the repository at this point in the history
Update `libc` to 0.2.119 to include [libc PR#2683](rust-lang/libc#2683) which added support `device_encoding` on wasi.
deantvv committed Feb 24, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ab50217 commit 68b9d38
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ hexf-parse = "0.2.1"
indexmap = "1.0.2"
ahash = "0.7.2"
bitflags = "1.3"
libc = "0.2.107"
libc = "0.2.119"
nix = "0.23"
paste = "1.0.5"
is-macro = "0.1"
2 changes: 0 additions & 2 deletions vm/src/stdlib/os.rs
Original file line number Diff line number Diff line change
@@ -1700,8 +1700,6 @@ pub(super) mod _os {
}
}

// TODO: libc currently doesn't support nl_langinfo in wasi
#[cfg(not(target_os = "wasi"))]
#[pyfunction]
fn device_encoding(fd: i32, _vm: &VirtualMachine) -> PyResult<Option<String>> {
if !isatty(fd) {

0 comments on commit 68b9d38

Please sign in to comment.