Skip to content

host_env: share thread, locale, loader and BSTR - #8702

Merged
youknowone merged 24 commits into
RustPython:mainfrom
youknowone:host-env-share
Sep 16, 2026
Merged

youknowone merged 24 commits into
RustPython:mainfrom
youknowone:host-env-share

Conversation

@youknowone

@youknowone youknowone commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Add host_env wrappers for Windows thread names, locale info / wide collation, CompareStringOrdinal, LoadLibraryEx/GetProcAddress/FreeLibrary, BSTR and COM helpers, and AF_HYPERV UUID conversion. Call ensure_drive_current_directory from spawnve/execve as well as spawnv/execv.

The VM now uses those wrappers for _thread set/get name and Windows thread ids, _locale strcoll/strxfrm/_getdefaultlocale, ctypes LoadLibrary/FreeLibrary, and WMI BSTRs.

Assisted-by: Claude

— PR description by Claude

Summary by CodeRabbit

  • New Features
    • Improved Windows support for native library loading, COM integration, UUID conversion, locale-aware string operations, and ordinal string comparison.
    • Added Windows thread-name retrieval and native thread ID support.
    • Added SSL constants and a lightweight SSL interface independent of the full TLS engine.
    • Added a WebAssembly SSL interface with memory BIOs, sessions, hostname validation, ALPN, and random-byte helpers.
  • Bug Fixes
    • Improved Windows process execution and WMI memory cleanup.
    • Improved error reporting for Windows library operations and invalid locale strings.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant