Skip to content

libobs: base printf/visibility and utf8 Windows converter behind self-guarded headers (#876) - #2156

Merged
zackees merged 4 commits into
masterfrom
facade/876-base-utf8
Oct 24, 2026
Merged

zackees merged 4 commits into
masterfrom
facade/876-base-utf8

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Fixes #876 (slice 2). Stacked on #2155: review only the last two commits.

RED: the test commit extends test_libobs_reference_hosts, which fails to compile because util/base-windows.h and util/utf8-windows.h don't exist yet.
GREEN:

  • base-windows.h carries the MinGW/MSVC VPRINTFATTR and the empty BASE_HIDDEN; base.c.h and base-variadic.c.h fall back to the printf attribute and ELF hidden visibility.
  • The MultiByteToWideChar converter moves to utf8-host-windows.c.h in the ported-windows-platform group. utf8.c.h keeps the portable converter under #ifndef UTF8_HOST_WINDOWS.
  • The ratchet baseline drops 4 more findings.

The win-x64 and mac-arm64 cross builds pass locally. Tier 2 only; there's no Rust code.

@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Coordinator: the Windows jobs (Cross Lint, Rust Tests, Tier 2) fail to link. In run 40098950617, job 120888893658, lld-link: error: undefined symbol: oracle_utf8_to_wchar and oracle_wchar_to_utf8. This PR moves the utf8 code to Windows-only, so the obs-c-oracle build probably no longer compiles the oracle's utf8 C on Windows, or the oracle's file list needs the new host file. Linux and macOS are green.

@zackees
zackees force-pushed the facade/876-base-utf8 branch from 90fd2e8 to 08eddf8 Compare October 24, 2026 14:16
@zackees
zackees enabled auto-merge October 24, 2026 14:16
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 67d6183 Oct 24, 2026
35 checks passed
@zackees
zackees deleted the facade/876-base-utf8 branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

facade: libobs ported units (c): 9 platform conditionals already replaced by the Rust port

1 participant