You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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));
The text was updated successfully, but these errors were encountered:
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
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));
The text was updated successfully, but these errors were encountered: