|
|
|
@ -90,7 +90,7 @@ class SortedProperties extends Properties { |
|
|
|
public void store(OutputStream out, @Nullable String comments) throws IOException { |
|
|
|
public void store(OutputStream out, @Nullable String comments) throws IOException { |
|
|
|
ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
|
|
|
ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
|
|
|
super.store(baos, (this.omitComments ? null : comments)); |
|
|
|
super.store(baos, (this.omitComments ? null : comments)); |
|
|
|
String contents = new String(baos.toByteArray(), StandardCharsets.ISO_8859_1); |
|
|
|
String contents = baos.toString(StandardCharsets.ISO_8859_1.name()); |
|
|
|
for (String line : contents.split(EOL)) { |
|
|
|
for (String line : contents.split(EOL)) { |
|
|
|
if (!(this.omitComments && line.startsWith("#"))) { |
|
|
|
if (!(this.omitComments && line.startsWith("#"))) { |
|
|
|
out.write((line + EOL).getBytes(StandardCharsets.ISO_8859_1)); |
|
|
|
out.write((line + EOL).getBytes(StandardCharsets.ISO_8859_1)); |
|
|
|
|