Skip to content

Conversation

@Saidbek
Copy link

@Saidbek Saidbek commented Jan 29, 2026

What is your fix for the problem, implemented in this PR?

Fixes #7681

Windows doesn't allow certain characters in filenames (e.g., colons) that are valid on Unix. When gems contain files with these characters, installation fails on Windows with cryptic Errno::EINVAL errors.

This commit adds validation and clear error messages that direct users to report issues to gem authors instead.

  • Add InvalidFileNameError with user-friendly messages
  • Validate filenames during gem extraction on Windows
  • Warn developers when building gems with invalid filenames

Make sure the following tasks are checked

Add validation and clear error messages for gems with filenames containing
invalid Windows characters (e.g., colons), directing users to report issues
to gem authors instead of RubyGems.
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.

Improve handling of paths with colons (allowed on Unix, disallowed on Windows)

1 participant