Skip to content

force UTF-8 encoding for gem file reading#8068

Merged
colinsurprenant merged 1 commit intoelastic:masterfrom
colinsurprenant:fix/7768
Aug 25, 2017
Merged

force UTF-8 encoding for gem file reading#8068
colinsurprenant merged 1 commit intoelastic:masterfrom
colinsurprenant:fix/7768

Conversation

@colinsurprenant
Copy link
Copy Markdown
Contributor

@colinsurprenant colinsurprenant commented Aug 24, 2017

fixes #7768

Under Windows, the read string encoding was set to Windows-1252 which was breaking the DSL instance_eval on that string.

It is probably worth exploring if that encoding problem is actually a JRuby specific bug and report it if it is. The fact that there is no exception when doing theinstance_eval but instead the object becomes invalid is certainly a bug worth digging and reporting.

tested on OSX for regression and Windows where previously the plugins installation would fail and now correctly works.

@jakelandis
Copy link
Copy Markdown
Contributor

@colinsurprenant - Great find!

LGTM

@colinsurprenant
Copy link
Copy Markdown
Contributor Author

non related integration test failure, reported in #8073

@colinsurprenant colinsurprenant merged commit 67c2d9a into elastic:master Aug 25, 2017
@colinsurprenant
Copy link
Copy Markdown
Contributor Author

merged in master, 6.x, 6.0 and 5.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin manager (during dev bootstrap) is crashing with NullPointerException

2 participants