Skip to content
Snippets Groups Projects
Commit 478e47de authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Merge branch 'develop' of https://luc@gitlab.orekit.org/orekit/rugged.git into develop

parents efb03d74 698e5384
No related branches found
No related tags found
No related merge requests found
Pipeline #505 passed
...@@ -21,6 +21,7 @@ import java.io.InputStream; ...@@ -21,6 +21,7 @@ import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.net.URL; import java.net.URL;
import java.net.URLConnection; import java.net.URLConnection;
import java.nio.charset.StandardCharsets;
import java.util.Locale; import java.util.Locale;
import java.util.MissingResourceException; import java.util.MissingResourceException;
import java.util.PropertyResourceBundle; import java.util.PropertyResourceBundle;
...@@ -164,11 +165,9 @@ public enum RuggedMessages implements Localizable { ...@@ -164,11 +165,9 @@ public enum RuggedMessages implements Localizable {
stream = loader.getResourceAsStream(resourceName); stream = loader.getResourceAsStream(resourceName);
} }
if (stream != null) { if (stream != null) {
try { try (InputStreamReader inputStreamReader = new InputStreamReader(stream, StandardCharsets.UTF_8)) {
// Only this line is changed to make it to read properties files as UTF-8. // Only this line is changed to make it to read properties files as UTF-8.
bundle = new PropertyResourceBundle(new InputStreamReader(stream, "UTF-8")); bundle = new PropertyResourceBundle(inputStreamReader);
} finally {
stream.close();
} }
} }
return bundle; return bundle;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment