Skip to content

Commit 35cd720

Browse files
authored
Merge pull request RustPython#3560 from deantvv/os-device-encoding-wasi
os: add `device_encoding` to wasi
2 parents ab50217 + 68b9d38 commit 35cd720

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ hexf-parse = "0.2.1"
4848
indexmap = "1.0.2"
4949
ahash = "0.7.2"
5050
bitflags = "1.3"
51-
libc = "0.2.107"
51+
libc = "0.2.119"
5252
nix = "0.23"
5353
paste = "1.0.5"
5454
is-macro = "0.1"

vm/src/stdlib/os.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,8 +1700,6 @@ pub(super) mod _os {
17001700
}
17011701
}
17021702

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

0 commit comments

Comments
 (0)