Skip to content
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

Hard wire utf-8 encoding, so unicode filenames work #8847

Closed
wants to merge 1 commit into from

Conversation

rmuir
Copy link
Contributor

@rmuir rmuir commented Dec 9, 2014

Today e.g unicode index names are allowed, but you will get no error if a machine is misconfigured. Because they are allowed, we should explicitly set UTF-8 encoding by default.

For a server-side app, this is really a good flag to pass to the JVM anyway. it will dodge bugs in third party libraries and so on.

@s1monw
Copy link
Contributor

s1monw commented Dec 9, 2014

LGTM

@javanna
Copy link
Member

javanna commented Dec 9, 2014

Shall we also add the same to the pom so tests will run with the same encoding?

@rmuir
Copy link
Contributor Author

rmuir commented Dec 9, 2014

I think tests should be handled differently and separately, there is more involved there. For example, we can't assume this default for things like client code and so on.

@s1monw
Copy link
Contributor

s1monw commented Dec 15, 2014

@rmuir can you get this in?

@rmuir rmuir closed this in 01fc84d Dec 15, 2014
rmuir added a commit that referenced this pull request Dec 15, 2014
Sets -Dfile.encoding=UTF-8 by default.

Closes #8847
rmuir added a commit that referenced this pull request Dec 15, 2014
Sets -Dfile.encoding=UTF-8 by default.

Closes #8847
@rmuir rmuir removed the v1.3.7 label Dec 15, 2014
@rmuir
Copy link
Contributor Author

rmuir commented Dec 15, 2014

I removed 1.3.x since it is structured differently (e.g. no elasticsearch.in.bat)

@clintongormley clintongormley changed the title wire utf-8 encoding, so unicode filenames work Core: Hard wire utf-8 encoding, so unicode filenames work Dec 16, 2014
@clintongormley clintongormley added the :Core/Infra/Core Core issues without another label label Mar 19, 2015
@clintongormley clintongormley changed the title Core: Hard wire utf-8 encoding, so unicode filenames work Hard wire utf-8 encoding, so unicode filenames work Jun 7, 2015
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
Sets -Dfile.encoding=UTF-8 by default.

Closes elastic#8847
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants