Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add _winapi.GetACP and enable test_unicode on windows #5547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
enable test_unicode on windows
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
  • Loading branch information
arihant2math committed Feb 23, 2025
commit f97fbc3ece94ccb05b83feb93d4851e42e26088e
2 changes: 0 additions & 2 deletions 2 .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ env:
# test_os: many failing tests
# test_pathlib: support.rmtree() failing
# test_posixpath: OSError: (22, 'The filename, directory name, or volume label syntax is incorrect. (os error 123)')
# test_unicode: AttributeError: module '_winapi' has no attribute 'GetACP'
# test_venv: couple of failing tests
WINDOWS_SKIPS: >-
test_argparse
Expand All @@ -33,7 +32,6 @@ env:
test_rlcompleter
test_pathlib
test_posixpath
test_unicode
test_venv
# configparser: https://github.com/RustPython/RustPython/issues/4995#issuecomment-1582397417
# socketserver: seems related to configparser crash.
Expand Down
1 change: 1 addition & 0 deletions 1 vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ features = [
workspace = true
features = [
"Win32_Foundation",
"Win32_Globalization",
"Win32_Networking_WinSock",
"Win32_Security",
"Win32_Storage_FileSystem",
Expand Down
7 changes: 7 additions & 0 deletions 7 vm/src/stdlib/winapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ mod _winapi {
Ok(HANDLE(target))
}

#[pyfunction]
fn GetACP() -> u32 {
unsafe {
windows_sys::Win32::Globalization::GetACP()
}
}

#[pyfunction]
fn GetCurrentProcess() -> HANDLE {
unsafe { windows::Win32::System::Threading::GetCurrentProcess() }
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.