Skip to content

Read the dir output for the symlink check as binary - #215

Merged
hsbt merged 1 commit into
masterfrom
claude/forward-port-dir-binary-d1f11c
Oct 29, 2026
Merged

hsbt merged 1 commit into
masterfrom
claude/forward-port-dir-binary-d1f11c

Conversation

@hsbt

@hsbt hsbt commented Oct 29, 2026

Copy link
Copy Markdown
Member

test_ln_s_relative_to_symlinked_directory fails with ArgumentError: invalid byte sequence in UTF-8 on mswin when the tests run over ssh. The console code page there is 932, so cmd.exe writes the dir output in CP932. IO.popen tags that output as UTF-8 on Windows, and the <SYMLINKD> match raises.

Reading it with "rb" fixes that. This is a forward-port of ruby/ruby#19606, which has already landed as ruby/ruby@61332e5324.

Generated with Claude Code

cmd.exe writes it in the console code page, which is CP932 in an ssh session, while IO.popen tags it as UTF-8 on Windows, so the regexp match raised ArgumentError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hsbt
hsbt merged commit 2e7196a into master Oct 29, 2026
72 checks passed
@hsbt
hsbt deleted the claude/forward-port-dir-binary-d1f11c branch October 29, 2026 20:55
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