Skip to content

rust: Port obs-module-load-locale.c.h to obs-core after extraction #4247

Closed

Description

@zackees

Phase 6 Rust swap, dependent on extraction #4245 landing first. Port libobs/obs-module-load-locale.c.h (obs_module_load_locale) to obs-core, keeping the libobs C API/ABI unchanged.

The filename builders and case-insensitive comparison are already Rust; the remaining C function coordinates file resolution, text_lookup_create/add, warnings, and temporary allocation cleanup. Preserve default-only and overlay behavior, missing default returning NULL, missing overlay retaining default, case-only locale match skipping the overlay, NULL argument warnings, and the characterized leading slash/double slash behavior.

Existing characterization is test/cmocka/test_core_module_load.c::module_locale (1496-1557). Port its assertions into existing consolidated Rust category binaries; commit RED against a stub then GREEN, add differential coverage against the unchanged C oracle, and require the unchanged C test on hybrid and reference libraries. Do not edit existing C tests or public headers. Add real adapter link support if needed, with NULL guards before any field accessor.

The extraction branch is port/4245-module-load-locale-extract, held without a PR by the worker pool's BRANCH-ONLY assignment. This issue is not claimed and must wait for #4245 to merge. No changes to module initialization, module-list work or obs-websocket are in scope.

Activity

  1. added
    enhancement
    port
    P2
    size:S
    ready
    on Nov 9, 2026
  2. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: obs_module_load_locale Rust swap (pool im-bo-sw-mod, obs-studio4). 1. Branch port/4247-module-load-locale from prerequisite branch port/4245-module-load-locale-extract at 0c4f90f. 2. Commit RED coverage, then GREEN safe core, thin ABI bridge and unchanged-C differential coverage. 3. Run focused tests, formatting and full lint, then push that branch only. No PR will be opened during the CI backlog; manager will open stacked PRs when the queue drains. Module initialization and module-list work remain out of scope.

  3. moved this from Ready to In progress in obs-rust Multiviewon Nov 9, 2026
  4. moved this from In progress to Ready in obs-rust Multiviewon Nov 10, 2026
  5. zackees commented on Nov 18, 2026

    @zackees
    MemberAuthor

    Landed on master in #4564 (d6bef3e); verified the merge is an ancestor of origin/master and rust/obs-core/src/ffi/module_load_locale.rs exists there.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementportreadysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions