Skip to content

Etc.uname: Return "ARM64" on Windows ARM64 and drop Win9x branches - #102

Merged
hsbt merged 2 commits into
masterfrom
claude/clever-burnell-9f51cc
Sep 25, 2026
Merged

hsbt merged 2 commits into
masterfrom
claude/clever-burnell-9f51cc

Conversation

@hsbt

@hsbt hsbt commented Sep 25, 2026

Copy link
Copy Markdown
Member

On Windows ARM64, Etc.uname[:machine] returned "unknown" because GetSystemInfo reports PROCESSOR_ARCHITECTURE_ARM64, which the switch did not handle. The second commit removes the Win32s and Win9x branches, since GetVersionExW only reports VER_PLATFORM_WIN32_NT on the Windows versions Ruby supports.

Both commits landed in ruby/ruby first as ruby/ruby@640a8b9cc7 and ruby/ruby@7d51ed4706 (ruby/ruby#19015). I brought them here unchanged.

The CI here does not run on Windows, so I checked on x64 mswin that rake compile test passes and Etc.uname prints the same output before and after. The ruby/ruby Windows 11-arm job compiles the ARM64 case, but I have no ARM64 machine to check the returned value.

Generated with Claude Code

hsbt and others added 2 commits September 25, 2026 13:53
GetSystemInfo reports PROCESSOR_ARCHITECTURE_ARM64 there, which fell through to "unknown".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GetVersionExW always reports VER_PLATFORM_WIN32_NT, since Windows 9x support had been dropped in 8a02eed723 before Etc.uname was implemented on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hsbt
hsbt merged commit 2e4fd2b into master Sep 25, 2026
38 checks passed
@hsbt
hsbt deleted the claude/clever-burnell-9f51cc branch September 25, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant