You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: an OS error's text is strerror of a Win32 code (ERROR_INVALID_NAME 123 prints "no protocol option"); rt_readlink returns "" #2773
Found 2026-10-28 on win10 (branch fix-809) running :cli-selfhost-build-w-tests:
read_text: C:/…/out/archive/extracted/pkg/link-a.txt: no protocol option (os error 123); reached through __with_build_eval_entry -> build
123 is Win32 ERROR_INVALID_NAME (the symlink target was spelled with /; fixed separately in rt_symlink). The text is POSIX strerror(123) (ENOPROTOOPT).
Exact lines.
rt/windows_x86_64.w:231win_error() returns GetLastError(); the fs wrappers return its negation, so IoError.Os(code) holds a Win32 code on Windows.
lib/std/fs.w:63IoError.message and src/ComptimeEval.w:546comptime_os_error_message format every code with strerror(code), which reads it as an errno.
Fix. The runtime owns the text: a per-platform with_os_error_text(code) -> str (strerror on POSIX, FormatMessageW on Windows), read by IoError.message. src/ComptimeEval.w reaches it after a seed carries it (seed-bound: src/ links the pinned seed's runtime).
Also on Windows:rt_readlink (rt/windows_x86_64.w, rt/windows_aarch64.w) is let _ = path; win_empty_str(). That's a silent stub: every readlink on Windows answers "" instead of the target or an error. It needs DeviceIoControl(FSCTL_GET_REPARSE_POINT) or GetFinalPathNameByHandleW, or a loud refusal.
Activity
wip: Windows rt_readlink reads the reparse point (#2773, #809)
rt: a Windows symlink stores a `\` target and reads back through its …
rt: a Windows symlink stores a `\` target and reads back through its …
Windows: the #809 selfhost and migrator targets run green, on nothing…
Windows: a runtime error is a Win32 code in every path (#2788)
Windows: a runtime error is a Win32 code in every path (#2788)
Windows: a runtime error is a Win32 code in every path (#2788) (#2827)