fix: windows build failure in UTF-16 conversion #499

Manually merged
github merged 1 commit from gh-pr/499/head into gh-pr/499/base 2026-11-26 09:23:55 +00:00
Owner

@⁠Almo7aya on GitHub · 2026-09-07 07:49 UTC · original
Almo7aya:fix/windows_utf16 → main · +4 −1 · 1 files · 1 commits · merged 2026-09-07 07:52 UTC

Fix Utf16ToUtf8 passing string-view iterators to std::wstring_convert::to_bytes, which requires pointers and fails to
compile with the Windows toolchain.

Use data() and size() to provide the pointer range, and return early for empty input.

Validated successfully with:
cmake --build .\_Build\windows --target kyty_emulator -j 4

**@⁠Almo7aya** on GitHub · 2026-09-07 07:49 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/499) `Almo7aya:fix/windows_utf16` → `main` · +4 −1 · 1 files · 1 commits · merged 2026-09-07 07:52 UTC Fix `Utf16ToUtf8` passing string-view iterators to `std::wstring_convert::to_bytes`, which requires pointers and fails to compile with the Windows toolchain. Use `data()` and `size()` to provide the pointer range, and return early for empty input. Validated successfully with: `cmake --build .\_Build\windows --target kyty_emulator -j 4`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:23:52 +00:00
github manually merged commit 3c4b6f28da into gh-pr/499/base 2026-11-26 09:23:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.