Files
appsandbox/tools/iso-patch
James Stringer 584f0b7cc5 Windows: unify provisioning (R5) + fix UTF-8 username/password handling
Provisioning unification (R5):
- disk_util.c delegates generate_unattend_vhdx / generate_vhdx_setup_cmd /
  generate_vhdx_setupcomplete to the shared tools/provision/win_provision.c, and
  stages AppSandboxSHM + NetKVM (existence-gated) in generate_vhdx_manifest.
- Compile win_provision.c into AppSandboxCore.vcxproj. Win->Win output is
  equivalent (the SHM/NetKVM install steps are if-exist no-ops on a PC host).

UTF-8 / non-ASCII credentials:
- win_provision.c: encode the unattend <Password> as true UTF-16LE (was a UTF-8
  byte zero-extend that corrupted non-ASCII/CJK passwords); ASCII unchanged. Plus
  case-insensitive locale-tag lookup and ComputerName truncation by UTF-8 code
  points (never splitting a multibyte char).
- webview2_bridge.c json_get_string: decode JSON escapes (\uXXXX, \" \ ...) so
  non-ASCII values from the headless SDK (json.dumps/ensure_ascii) are no longer
  stored as literal \uXXXX text. Validated end-to-end: a CJK password now sets
  correctly and Windows authenticates against it.
- disk_util.c wrapper: check the WideCharToMultiByte conversions.

Also included in the working tree:
- Reconcile user-mode .vcxproj platform toolset v145 -> v143 (VS2022).
- WINDOWS_AGENT_BRIEF.md: correct stale driver-name/symbol/devcon references.
2026-06-28 21:16:30 -04:00
..