Skip to content

Use external when windows filesystem encoding is not found#5733

Merged
headius merged 2 commits intojruby:masterfrom
headius:default_windows_filesystem_encoding
May 17, 2019
Merged

Use external when windows filesystem encoding is not found#5733
headius merged 2 commits intojruby:masterfrom
headius:default_windows_filesystem_encoding

Conversation

@headius
Copy link
Member

@headius headius commented May 15, 2019

If the file.encoding property does not point at an encoding we recognize, such as "MS950" from #5707, we would hard error during JRuby initialization. This PR modifies that behavior to fall back on whatever we determine is the default external encoding.

This mitigates the error seen in #5707 but it may not match CRuby behavior exactly.

cc @enebo @lopex

@headius headius added this to the JRuby 9.2.8.0 milestone May 15, 2019
@headius headius force-pushed the default_windows_filesystem_encoding branch from bf8cf1e to d015f56 Compare May 16, 2019 15:07
@headius headius merged commit 1adb37f into jruby:master May 17, 2019
@headius headius deleted the default_windows_filesystem_encoding branch May 17, 2019 14:07
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