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

Building or Testing on a system with default encoding other than UTF-8 breaks file "stemming_samples.txt" #36

Open
C057A5 opened this issue Jan 14, 2019 · 0 comments

Comments

@C057A5
Copy link

C057A5 commented Jan 14, 2019

The problem is that UpdateStemmingSamples.java reads the file with UTF-8 encoding and replaces it with a file using the default encoding of the building computer. Subsequent builds fail.

Proposed changes (lines 27, 28):
FileOutputStream fileWriter = new FileOutputStream(file.getAbsoluteFile());
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(fileWriter, StandardCharsets.UTF_8));

@C057A5 C057A5 changed the title Building on a system with default encoding other than UTF-8 breaks file "stemming_samples.txt" Building or Testing on a system with default encoding other than UTF-8 breaks file "stemming_samples.txt" Jan 14, 2019
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

No branches or pull requests

1 participant