mirror of
https://github.com/libracoder/kiri.git
synced 2026-12-06 23:32:31 +09:00
Resolve three Windows regressions found on origin/main (48de26f45):
- crates/kiri-image: gate Unix-only symlink, chmod, sleep, and fault-inject signal tests with #[cfg(unix)]; implement Win32 proc::alive via OpenProcess; open finish_ingest_file_opts writable on Windows before sync_all() and close the handle before rename; skip directory FlushFileBuffers in sync_blobs on non-Unix; drain Content-Length in serve_recording; and isolate the_scheme_cache_is_bounded_and_remembers_failures from the shared global SCHEMES map.
- contrib/windows/kiri-admin.ps1 & crates/kiri-win/src/storage.rs: diskpart /s reads script contents in the system OEM codepage (failing UTF-16LE/UTF-8 scripts and mangling non-OEM Unicode paths such as Japanese directory or file names to '?'). Alias non-OEM VHDX paths through a temporary ASCII NTFS hardlink first (immune to RedirectionGuard / ERROR_UNTRUSTED_MOUNT_POINT), falling back to an 8.3 short path or temporary NTFS directory junction for cross-volume paths, with deterministic cleanup on error.
- crates/kiri-win/src/setup.rs & crates/kiri/src/wsl.rs: strip a leading UTF-8 BOM (EF BB BF) before serde_json::from_slice in saved_from and distro_from_setup_json so BOM-prefixed setup.json files preserve done=true and distro.
- docs/fix-registry.md & tests/regressions.tsv: document fixes and add regression checks (verified with check-regressions.py and live on Windows 11).