Skip to content

Fix problems with spaces in path names under windows #562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

tillsc
Copy link
Contributor

@tillsc tillsc commented Jul 15, 2025

Avoid IllegalArgumentException from new URI(...) by using getRawSchemeSpecificPart() to preserve correct escaping (e.g., for spaces in Program Files).
This occurred for example when running java -jar "my_app.war" -S rake -T under windows.

I left this.path unchanged because it's unclear what other parts of the code expect there.
Instead, I extract a separate pathWithoutMain for URI construction.

@olleolleolle olleolleolle merged commit c45992c into jruby:master Jul 24, 2025
3 of 6 checks passed
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.

3 participants